示例#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;
 }
 public void Write(ObjectId id)
 {
     Write(id.GetBytes());
 }