Files
UnrealEngine/Engine/Source/Programs/Shared/EpicGames.MongoDB/ObjectIdHelpers.cs
2025-05-18 13:04:45 +08: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);
}
}
}
}