Example #1
0
        // public methods...
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.AppendLine($"ACE Size: 0x{AceSize:X}");

            sb.AppendLine($"ACE Type: {AceType}");

            sb.AppendLine($"ACE Flags: {AceFlags.ToString().Replace(", ", "|")}");

            sb.AppendLine($"Mask: {Mask}");

            sb.AppendLine($"SID: {Sid}");
            sb.AppendLine($"SID Type: {SidType}");

            sb.AppendLine($"SID Type Description: {Helpers.GetDescriptionFromEnumValue(SidType)}");

            return(sb.ToString());
        }