You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
26 lines
413 B
C#
26 lines
413 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using MongoDB.Bson;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EpicGames.MongoDB
|
|
{
|
|
static class ObjectIdHelpers
|
|
{
|
|
public static ObjectId ToObjectId(this string Text)
|
|
{
|
|
if (Text.Length == 0)
|
|
{
|
|
return ObjectId.Empty;
|
|
}
|
|
else
|
|
{
|
|
return ObjectId.Parse(Text);
|
|
}
|
|
}
|
|
}
|
|
}
|