static ObjectId() { ZeroId = new ObjectId(0, 0, 0, 0, 0); ZeroIdString = ZeroId.ToString(); }
/// <summary> /// Convert an ObjectId into a hex string representation. /// </summary> /// <param name="i">The id to convert. May be null.</param> /// <returns>The hex string conversion of this id's content.</returns> public static string ToString(ObjectId i) { return i != null ? i.ToString() : ZeroIdString; }
/// <summary> /// Convert an ObjectId into a hex string representation. /// </summary> /// <param name="i">The id to convert. May be null.</param> /// <returns>The hex string conversion of this id's content.</returns> public static string ToString(ObjectId i) { return(i != null?i.ToString() : ZeroIdString); }