31 references to Write
Microsoft.ML.AutoML.SourceGenerator (31)
Template\SweepableEstimator_T_.cs (31)
28
this.
Write
(@"
40
this.
Write
(this.ToStringHelper.ToStringWithCulture(NameSpace));
41
this.
Write
("\r\n{\r\n internal partial class ");
42
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
43
this.
Write
(" : SweepableEstimator<");
44
this.
Write
(this.ToStringHelper.ToStringWithCulture(TOption));
45
this.
Write
(">\r\n {\r\n public ");
46
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
47
this.
Write
("(");
48
this.
Write
(this.ToStringHelper.ToStringWithCulture(TOption));
49
this.
Write
(" defaultOption, SearchSpace<");
50
this.
Write
(this.ToStringHelper.ToStringWithCulture(TOption));
51
this.
Write
("> searchSpace = null)\r\n {\r\n this.TParameter = defaultOption;\r\n " +
54
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
55
this.
Write
(";\r\n }\r\n\r\n internal ");
56
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
57
this.
Write
("()\r\n {\r\n this.EstimatorType = EstimatorType.");
58
this.
Write
(this.ToStringHelper.ToStringWithCulture(ClassName));
59
this.
Write
(";\r\n this.TParameter = new ");
60
this.
Write
(this.ToStringHelper.ToStringWithCulture(TOption));
61
this.
Write
("();\r\n }\r\n \r\n internal override IEnumerable<string> CSharpUsingSt" +
63
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(UsingStatements.Select(x => $"using {x};"))));
64
this.
Write
("};\r\n }\r\n\r\n internal override IEnumerable<string> NugetDependencies\r" +
66
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.PrettyPrintListOfString(NugetDependencies)));
67
this.
Write
("};\r\n }\r\n\r\n internal override string FunctionName \r\n {\r\n " +
69
this.
Write
(this.ToStringHelper.ToStringWithCulture(Utils.GetPrefix(Type)));
70
this.
Write
(".");
71
this.
Write
(this.ToStringHelper.ToStringWithCulture(FunctionName));
72
this.
Write
("\";\r\n }\r\n }\r\n}\r\n\r\n");
221
this.
Write
(textToAppend);
230
this.
Write
(string.Format(global::System.Globalization.CultureInfo.CurrentCulture, format, args));