ToString() public static method

Convert an ObjectId into a hex string representation.
public static ToString ( ObjectId i ) : string
i ObjectId The id to convert. May be null.
return string
Exemplo n.º 1
0
 static ObjectId()
 {
     ZeroId = new ObjectId(0, 0, 0, 0, 0);
     ZeroIdString = ZeroId.ToString();
 }
Exemplo n.º 2
0
 static ObjectId()
 {
     ZeroId       = new ObjectId(0, 0, 0, 0, 0);
     ZeroIdString = ZeroId.ToString();
 }
Exemplo n.º 3
0
 ///	<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;
 }
Exemplo n.º 4
0
 ///	<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);
 }