コード例 #1
0
        public override bool Equals(object obj)
        {
            RmAttributeName other = obj as RmAttributeName;

            if (other as Object == null)
            {
                return(false);
            }
            else
            {
                return(this.key.Equals(other.key));
            }
        }
コード例 #2
0
ファイル: RmResource.cs プロジェクト: sagius-li/Lydia
 protected void EnsureAttributeExists(RmAttributeName attributeName)
 {
     EnsureNotDisposed();
     lock (this.attributes)
     {
         if (attributeName == null)
         {
             throw new ArgumentNullException("attributeName");
         }
         if (this.attributes.ContainsKey(attributeName))
         {
             return;
         }
         else
         {
             this.attributes.Add(attributeName, new RmAttributeValue());
         }
     }
 }
コード例 #3
0
        public object Clone()
        {
            RmAttributeName newObject = new RmAttributeName(this.Name, this.Culture);

            return(newObject);
        }
コード例 #4
0
 internal RmAttributeChange(RmAttributeName name, IComparable atomicValue, RmAttributeChangeOperation operation)
 {
     this.name           = name;
     this.attributeValue = atomicValue;
     this.operation      = operation;
 }