private static String convertCanonicalGrantee(CanonicalGrantee grantee) { StringBuilder builder = new StringBuilder(); builder.Append("<Grantee xmlns:xsi=\"" + xmlns + "\" xsi:type=\"CanonicalUser\">"); builder.Append("<DisplayName>" + grantee.getDisplayName() + "</DisplayName>"); builder.Append("<ID>" + grantee.getIdentifier() + "</ID>"); builder.Append("</Grantee>"); return builder.ToString(); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj.GetType().Equals(this.GetType())) { CanonicalGrantee other = (CanonicalGrantee)obj; return(this.id.Equals(other.id)); } return(false); }