Files
UnrealEngineUWP/Engine/Source/Programs/Shared/EpicGames.MongoDB/ObjectIdHelpers.cs
joe kirchoff a109e0c528 EpicGames.MongoDB: net6.0 upgrade
#rb none
#rnx
#preflight 62a11a9c7a46d9bc2aa3d3fd

[CL 20566308 by joe kirchoff in ue5-main branch]
2022-06-08 18:17:10 -04:00

22 lines
316 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using MongoDB.Bson;
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);
}
}
}
}