Exemple #1
0
        public EventDeclaration AddEvent(ITypeDeclaration type, string name)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            EventDeclaration e = new EventDeclaration(this.Conformer.ToCapitalized(name), this, type);

            this.events.Add(e);
            return(e);
        }
        public EventDeclaration AddEvent(ITypeDeclaration type, string name)
        {
            if (type==null)
                throw new ArgumentNullException("type");
            if (name==null)
                throw new ArgumentNullException("name");

            EventDeclaration e = new EventDeclaration(this.Conformer.ToCapitalized(name),this,type);
            this.events.Add(e);
            return e;
        }