Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public bool Equals(LockMode other)
 {
     if (other == null)
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return other.level == level && Equals(other.name, name);
 }