コード例 #1
0
        public object Clone()
        {
            AttributeListUnion attributeList = new AttributeListUnion();

            attributeList.PortableAttributes = PortableAttributes != null ? (PortableAttribute[])PortableAttributes.Clone() : null;
            return(attributeList);
        }
コード例 #2
0
ファイル: Type.cs プロジェクト: nonomal/NCache
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     id              = reader.ReadObject() as string;
     name            = reader.ReadObject() as string;
     portable        = reader.ReadBoolean();
     portableClasses = reader.ReadObject() as PortableClass[];
     PortableClasses = reader.ReadObject() as PortableClass[];
     attrbiuteList   = reader.ReadObject() as AttributeListUnion;
 }
コード例 #3
0
            private static Hashtable GetCompactAttributeListUnion(AttributeListUnion attributeList)
            {
                Hashtable settings = new Hashtable();

                if (attributeList != null && attributeList.PortableAttributes != null)
                {
                    settings.Add("attribute", GetCompactPortableAttributes(attributeList.PortableAttributes));
                }
                return(settings);
            }