private static IConstructorInitializer CreateBaseConstructorInitializer( CSharpElementFactory elementFactory, IParameterDeclaration infoParameterDeclaration, IParameterDeclaration contextParameterDeclaration) { var result = elementFactory.CreateBaseConstructorInitializer(); var infoArgumentExpression = elementFactory.CreateExpression("$0", infoParameterDeclaration.DeclaredName); result.AddArgumentBefore(elementFactory.CreateArgument(ParameterKind.VALUE, infoArgumentExpression), null); var contextArgumentExpression = elementFactory.CreateExpression("$0", contextParameterDeclaration.DeclaredName); result.AddArgumentBefore(elementFactory.CreateArgument(ParameterKind.VALUE, contextArgumentExpression), null); return(result); }