protected override void AppendParameterDeclaration(T4ParameterDescription description) { foreach (string inspection in DisabledPropertyInspections) { AppendDisabledInspections(inspection); } Result.Append(" private "); description.AppendTypeMapped(Result); Result.Append(" "); description.AppendName(Result); Result.Append(" => "); Result.Append(description.FieldNameString); Result.AppendLine(";"); }
protected override void AppendParameterDeclaration(T4ParameterDescription description) { // Range maps of this converter are ignored, so it's safe to use Append instead of AppendMapped Result.AppendLine($@"/// <summary> /// Access the {description.PropertyNameString} parameter of the template. /// </summary>"); AppendIndent(); Result.Append("private "); description.AppendTypeMapped(Result); Result.Append(" "); description.AppendName(Result); Result.AppendLine(); using (new CodeBlockCookie(this)) { AppendIndent(); Result.AppendLine("get"); using (new CodeBlockCookie(this)) { AppendIndent(); Result.AppendLine($"return this.{description.FieldNameString};"); } } Result.AppendLine(); }