/// <summary> /// Initializes a new instance of the <see cref="NestedClosureCodeFragment" /> class. /// </summary> /// <param name="parameter">The nested closure parameter's name.</param> /// <param name="methodCall">The method call used as the body of the nested closure.</param> public NestedClosureCodeFragment(string parameter, MethodCallCodeFragment methodCall) { Parameter = parameter; MethodCalls = new List <MethodCallCodeFragment> { methodCall }; }