Hi!

I have made these attributes and one interface, can I commit?

-- 
Alejandro S�nchez Acosta <[EMAIL PROTECTED]>
Registered User #287692
//
// System.ComponentModel.EditorAttribute.cs
//
// Author:
//   Alejandro S�nchez Acosta ([EMAIL PROTECTED])
//
// (C) Alejandro S�nchez Acosta
//

namespace System.ComponentModel {

        /// <summary>
        ///   Editor Attribute for classes. 
        /// </summary>
        
        string name;    
        string basename;
        Type base;
        Type nametype;

        [AttributeUsage(AttributeTargets.All)]
                public EditorAttribute()
                {
                        this.name = "";
                }

                public EditorAttribute(string typeName, string baseTypeName)
                {
                        name = typeName;
                        basename = baseTypeName;
                }

                public EditorAttribute(string typeName, Type baseType)
                {
                        name = typeName;
                        base = baseType;        
                }

                public EditorAttribute(Type type, Type baseType)
                {
                        nametype = type;
                        base = baseType;
                }

                public string EditorBaseTypeName {
                        get
                        {
                                return basename;
                        }
                }
                
                public string EditorTypeName {
                        get
                        {
                                return name;
                        }
                }

                public override object TypeId {
                        get
                        {
                                return this.GetType();
                        }
                }
                
                public override bool Equals(object obj)
                {
                        if (!(o is EditorAttribute))
                                return false;
                        return (((EditorAttribute) o).name == name) &&
                                (((EditorAttribute) o).basename == basename) &&
                                (((EditorAttribute) o).base == base) &&
                                (((EditorAttribute) o).nametype == nametype);
                }
                
                public override int GetHashCode()
                {
                        return base.GetHashCode ();
                }
}

//
// System.ComponentModel.DesignerAttribute.cs
//
// Author:
//   Alejandro S�nchez Acosta ([EMAIL PROTECTED])
//
// (C) Alejandro S�nchez Acosta
//

namespace System.ComponentModel {

        /// <summary>
        ///   Designer Attribute for classes. 
        /// </summary>
        
        /// <remarks>
        /// </remarks>
        
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
                public sealed class DesignerAttribute : Attribute
                {
                        string name;
                        string basetypename;
                        Type type;
                        Type basetype;
                        
                        public DesignerAttribute (string designerTypeName)
                        {
                                name  = designerTypeName;
                        }

                        public DesignerAttribute(Type designerType)
                        {
                                type = designerType;
                        }

                        public DesignerAttribute(string designerTypeName, string 
designerBaseTypeName)
                        {
                                name = designerTypeName;
                                basetypename = designerBaseTypeName;
                        }

                        public DesignerAttribute(string designerTypeName, Type 
designerBaseType)
                        {
                                name = designerTypeName;
                                basetype = designerBaseType;
                        }

                        public DesignerAttribute(Type designerType, Type 
designerBaseType)
                        {
                                type = designerType;
                                basetype = designerBaseType;
                        }

                        public string DesignerBaseTypeName 
                        {
                                get
                                {
                                        return basetype;
                                }
                        }

                        public string DesignerTypeName 
                        {
                                get
                                {
                                        return name;
                                }
                        }

                        public override object TypeId 
                        {
                                get 
                                {
                                        return this.GetType();
                                }
                        }
                        
                        public override bool Equals(object obj)
                        {
                                if (!(o is DesignerAttribute))
                                        return false;
                                return (((DesignerAttribute) o).name == name) && 
                                        (((DesignerAttribute) o).basetype == basetype) 
&&
                                        (((DesignerAttribute) o).type == type) &&
                                        (((DesignerAttribute) o).basetypename == 
basetypename);
                        }                               

                        public override int GetHashCode()
                        {
                                return base.GetHashCode ();
                        }
}
// System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd.cs 
//
// Author
//      Alejandro S�nchez Acosta
//
// (C) Alejandro S�nchez Acosta
//

namespace System.Runtime.Remoting.Metadata.W3cXsd2001 
{
        /// <summary>
        /// ISoapXsd Interface
        /// </summary>
        
        public interface ISoapXsd
        {
                string GetXsdType();
        }
}

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente

Reply via email to