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