private static RDomConstructor CreateRDomConstructor(IClass cl) { var constructor = new RDomConstructor(cl.Name, AccessModifier.Public, constructorInitializerType: ConstructorInitializerType.This); var nullParam = new RDomArgument(RDom.CSharp.ParseExpression("null")); constructor.InitializationArguments.AddOrMoveRange(new IArgument[] { nullParam, nullParam.Copy(), nullParam.Copy() }); cl.InsertAfterInitialFields(constructor); return constructor; }
private static RDomConstructor CreateRDomConstructor(IClass cl) { var constructor = new RDomConstructor(cl.Name, AccessModifier.Public, constructorInitializerType: ConstructorInitializerType.This); var nullParam = new RDomArgument(RDom.CSharp.ParseExpression("null")); constructor.InitializationArguments.AddOrMoveRange(new IArgument[] { nullParam, nullParam.Copy(), nullParam.Copy() }); cl.InsertAfterInitialFields(constructor); return(constructor); }