Esempio n. 1
0
        public override Operation Clone(CompositeType newParent)
        {
            CSharpConstructor constructor = new CSharpConstructor(newParent);

            constructor.CopyFrom(this);
            return(constructor);
        }
Esempio n. 2
0
        public override Constructor AddConstructor()
        {
            Constructor constructor = new CSharpConstructor(this);

            constructor.AccessModifier = AccessModifier.Public;
            AddOperation(constructor);

            return(constructor);
        }
Esempio n. 3
0
        public override Constructor AddConstructor()
        {
            Constructor constructor = new CSharpConstructor(this);

            if (Modifier == ClassModifier.Abstract)
            {
                constructor.AccessModifier = AccessModifier.Protected;
            }
            else if (Modifier != ClassModifier.Static)
            {
                constructor.AccessModifier = AccessModifier.Public;
            }

            AddOperation(constructor);
            return(constructor);
        }