예제 #1
0
파일: ObjectId.cs 프로젝트: zeya/NoRM
 public static bool TryParse(string value, out ObjectId id)
 {
     id = Empty;
     if (value == null || value.Length != 24)
     {
         return false;
     }
     try
     {
         id = new ObjectId(value);
         return true;
     }
     catch (FormatException)
     {
         return false;
     }
 }
예제 #2
0
파일: ObjectId.cs 프로젝트: kenegozi/NoRM
 /// <summary>
 /// Equalses the specified other.
 /// </summary>
 /// <param name="other">
 /// The other.
 /// </param>
 /// <returns>
 /// The equals.
 /// </returns>
 public bool Equals(ObjectId other)
 {
     return other != null && this.ToString() == other.ToString();
 }