This commit is contained in:
2022-12-13 11:20:53 +08:00
parent 6693a66b30
commit 750545c2d0
43 changed files with 179 additions and 109 deletions

View File

@ -27,7 +27,7 @@ namespace Dot.Lang {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Str {
internal class Str {
private static global::System.Resources.ResourceManager resourceMan;
@ -68,14 +68,14 @@ namespace Dot.Lang {
<#
var xml = new XmlDocument();
xml.Load("Str.resx");
foreach (XmlNode data in xml.SelectNodes("//root/data")) {
foreach (XmlNode data in xml.SelectNodes("//root/data")!) {
#>
/// <summary>
/// <#= data.SelectSingleNode("value").InnerText #>
/// <#= data.SelectSingleNode("value")?.InnerText #>
/// </summary>
public static string <#= data.Attributes["name"].Value #> {
public static string <#= data.Attributes?["name"].Value #> {
get {
return ResourceManager.GetString("<#= data.Attributes["name"].Value #>", resourceCulture);
return ResourceManager.GetString("<#= data.Attributes!["name"].Value #>", resourceCulture);
}
}
<#