Пример #1
0
 /// <summary>
 /// Is this lock mode more restrictive than the given lock mode?
 /// </summary>
 /// <param name="mode"></param>
 public bool GreaterThan(LockMode mode)
 {
     return level > mode.level;
 }
Пример #2
0
 /// <summary>
 /// Is this lock mode less restrictive than the given lock mode?
 /// </summary>
 /// <param name="mode"></param>
 public bool LessThan(LockMode mode)
 {
     return level < mode.level;
 }
Пример #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(LockMode other)
 {
     if (other == null)
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return other.level == level && Equals(other.name, name);
 }