示例#1
0
        /// <summary>
        /// Clona os dados da instancia.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            PortableClass class2 = new PortableClass();

            class2.Name               = (Name != null) ? ((string)Name.Clone()) : null;
            class2.ID                 = (ID != null) ? ((string)ID.Clone()) : null;
            class2.Assembly           = (Assembly != null) ? ((string)Assembly.Clone()) : null;
            class2.Type               = (Type != null) ? ((string)Type.Clone()) : null;
            class2.PortableAttributes = (PortableAttributes != null) ? ((PortableAttribute[])PortableAttributes.Clone()) : null;
            return(class2);
        }
示例#2
0
        public object Clone()
        {
            PortableClass portableClass = new PortableClass();

            portableClass.Name               = Name != null ? (string)Name.Clone() : null;
            portableClass.ID                 = ID != null ? (string)ID.Clone() : null;
            portableClass.Assembly           = Assembly != null ? (string)Assembly.Clone() : null;
            portableClass.Type               = Type != null ? (string)Type.Clone() : null;
            portableClass.PortableAttributes = PortableAttributes != null ? (PortableAttribute[])PortableAttributes.Clone() : null;
            return(portableClass);
        }
示例#3
0
        /// <summary>
        /// Clona os dados da instancia.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            AttributeListUnion union = new AttributeListUnion();

            union.PortableAttributes = (PortableAttributes != null) ? ((PortableAttribute[])PortableAttributes.Clone()) : null;
            return(union);
        }