Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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);
}
}
}
}