public override Operation Clone(CompositeType newParent) { var constructor = new CSharpConstructor(newParent); constructor.CopyFrom(this); return(constructor); }
public override Constructor AddConstructor() { Constructor constructor = new CSharpConstructor(this); constructor.AccessModifier = AccessModifier.Public; AddOperation(constructor); return(constructor); }
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); }
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; }
public override Operation Clone(CompositeType newParent) { CSharpConstructor constructor = new CSharpConstructor(newParent); constructor.CopyFrom(this); return constructor; }
public override Constructor AddConstructor() { Constructor constructor = new CSharpConstructor(this); constructor.AccessModifier = AccessModifier.Public; AddOperation(constructor); return constructor; }