Beispiel #1
0
        public object Clone()
        {
            PortableAttribute portableAttribute = new PortableAttribute();

            portableAttribute.Name  = Name != null ? (string)Name.Clone() : null;
            portableAttribute.Type  = Type != null ? (string)Type.Clone() : null;
            portableAttribute.Order = Order != null ? (string)Order.Clone() : null;
            return(portableAttribute);
        }
Beispiel #2
0
            private static Hashtable GetCompactPortableAttribute(PortableAttribute attrib)
            {
                Hashtable settings = new Hashtable();

                settings.Add("name", attrib.Name);
                settings.Add("type", attrib.Type);
                settings.Add("order", attrib.Order);
                return(settings);
            }