public override string ToString() { StringBuilder sb = new StringBuilder(); if (AceSid != null) { sb.AppendLineEnv($"{nameof(AceSid)}: {AceSid.ToString()}"); } if (AceType != null) { sb.AppendLineEnv($"{nameof(AceType)}: {AceType.ToString()}"); } if (AceFlags != null && AceFlags.Any()) { sb.AppendLineEnv($"{nameof(AceFlags)}: {string.Join(", ", AceFlags)}"); } if (Rights != null && Rights.Any()) { sb.AppendLineEnv($"{nameof(Rights)}:"); for (int i = 0; i < Rights.Length; ++i) { sb.AppendIndentEnv(Rights[i]); } } if (ObjectGuid != null) { sb.AppendLineEnv($"{nameof(ObjectGuid)}: {ObjectGuid.ToString()}"); } if (InheritObjectGuid != null) { sb.AppendLineEnv($"{nameof(InheritObjectGuid)}: {InheritObjectGuid.ToString()}"); } return(sb.ToString()); }