private static DataClassWriter WriteMethod( this DataClassWriter writer, string name, string additionalParameter, params string[] modifications) { return(writer.WriteMethod(name, new[] { additionalParameter }, modifications)); }
private static DataClassWriter WriteMethod(this DataClassWriter writer, string name, string[] modifications) { return(writer.WriteMethod(name, new string[0], modifications)); }
private static DataClassWriter WriteMethod(this DataClassWriter writer, string name, string modification) { return(writer.WriteMethod(name, new[] { modification })); }
private static DataClassWriter WriteMethod(this DataClassWriter writer, string name, Property property, string modification) { return(writer.WriteMethod(name, $"{property.GetNullabilityAttribute()}{property.GetNullableType()} {property.Name.ToInstance()}", modification)); }
private static DataClassWriter WriteMethod(this DataClassWriter writer, string name, Property property, string modification) { return writer.WriteMethod(name, $"{property.GetNullableType()} {property.Name.ToInstance().EscapeParameter()}", modification); }
private static DataClassWriter WriteMethod(this DataClassWriter writer, string name, Property property, string modification) { var attributes = property.Secret ?? false ? "[Secret] " : string.Empty; return(writer.WriteMethod(name, $"{attributes}{property.GetNullableType()} {property.Name.ToInstance().EscapeParameter()}", modification)); }