A change in an attribute.
コード例 #1
0
        /// <summary>
        /// Determines whether the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>.
        /// </summary>
        /// <param name="obj">The <see cref="T:System.Object"/> to compare with the current <see cref="T:System.Object"/>.</param>
        /// <returns>
        /// true if the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>; otherwise, false.
        /// </returns>
        /// <exception cref="T:System.NullReferenceException">
        /// The <paramref name="obj"/> parameter is null.
        /// </exception>
        public override bool Equals(object obj)
        {
            RmAttributeChange other = obj as RmAttributeChange;

            if (other == null)
            {
                return(false);
            }
            if (this.Name == null)
            {
                return(false);
            }
            if (this.Name.Equals(other.Name) == false)
            {
                return(false);
            }
            if (this.Value == null)
            {
                return(other.Value == null);
            }
            else
            {
                return(this.Value.Equals(other.Value));
            }
        }
コード例 #2
0
ファイル: RmRequestFactory.cs プロジェクト: Predica/FimClient
 DirectoryAccessChange BuildDirectoryAccessChange(RmAttributeChange attribute)
 {
     DirectoryAccessChange retReqChange = new DirectoryAccessChange();
     retReqChange.AttributeType = attribute.Name.Name;
     XmlElement attributeValueElem = base.RmDoc.CreateElement(retReqChange.AttributeType, RmNamespace);
     if (attribute.Value != null)
     {
         attributeValueElem.InnerText = attribute.Value.ToString();
     }
     retReqChange.AttributeValue.Values.Add(attributeValueElem);
     return retReqChange;
 }