예제 #1
0
 public override bool Equals(object obj)
 {
     return(obj is Ace ace &&
            AceType == ace.AceType &&
            ((AceFlags is null && ace.AceFlags is null) || (!(AceFlags is null) && !(ace.AceFlags is null) && AceFlags.Except(ace.AceFlags).Count() == 0)) &&
            ((Rights is null && ace.Rights is null) || (!(Rights is null) && !(ace.Rights is null) && Rights.Except(ace.Rights).Count() == 0)) &&
            ObjectGuid == ace.ObjectGuid &&
            InheritObjectGuid == ace.InheritObjectGuid &&
            AceSid == ace.AceSid);
 }