public object Clone() { AttributeListUnion attributeList = new AttributeListUnion(); attributeList.PortableAttributes = PortableAttributes != null ? (PortableAttribute[])PortableAttributes.Clone() : null; return(attributeList); }
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; }
private static Hashtable GetCompactAttributeListUnion(AttributeListUnion attributeList) { Hashtable settings = new Hashtable(); if (attributeList != null && attributeList.PortableAttributes != null) { settings.Add("attribute", GetCompactPortableAttributes(attributeList.PortableAttributes)); } return(settings); }