25 references to Write
Microsoft.ML.AutoML.SourceGenerator (25)
Template\SweepableEstimator.cs (25)
28
this.
Write
(@"
39
this.
Write
(this.ToStringHelper.ToStringWithCulture(NameSpace));
40
this.
Write
("\r\n{\r\n internal partial class ");
41
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
42
this.
Write
(" : SweepableEstimator\r\n {\r\n public ");
43
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
44
this.
Write
("()\r\n {\r\n this.EstimatorType = EstimatorType.");
45
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
46
this.
Write
(";\r\n }\r\n \r\n");
50
this.
Write
(" [");
51
this.
Write
(this.ToStringHelper.ToStringWithCulture(typeAttributeName));
52
this.
Write
("]\r\n [JsonProperty(NullValueHandling=NullValueHandling.Ignore)]\r\n pu" +
54
this.
Write
(this.ToStringHelper.ToStringWithCulture(propertyName));
55
this.
Write
(" { get; set; }\r\n\r\n");
57
this.
Write
(" internal override IEnumerable<string> CSharpUsingStatements \r\n {\r\n" +
59
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};"))));
60
this.
Write
("};\r\n }\r\n\r\n internal override IEnumerable<string> NugetDependencies\r" +
62
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(NugetDependencies)));
63
this.
Write
("};\r\n }\r\n\r\n internal override string FunctionName \r\n {\r\n " +
65
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.GetPrefix(Type)));
66
this.
Write
(".");
67
this.
Write
(this.ToStringHelper.ToStringWithCulture(FunctionName));
68
this.
Write
("\";\r\n }\r\n }\r\n}\r\n\r\n");
216
this.
Write
(textToAppend);
225
this.
Write
(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));