예제 #1
0
 public static bool TryParse(string value, out ObjectId oid)
 {
     oid = null;
       if (!IsOidString(value)) return false;
       try
       {
     oid = FromString(value);
       }
       catch
       {
     return false;
       }
       return true;
 }
예제 #2
0
 public void Write(ObjectId id)
 {
     Write(id.GetBytes());
 }