You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstringCloseingDelimiter{get{Console.WriteLine($"RazorTemplateEngine has no {nameof(CloseingDelimiter)}");return"";}set=>Console.WriteLine($"Can not set {nameof(CloseingDelimiter)} for RazorTemplateEngine");}
11
+
ITemplateEngineConfig<T>_config;
12
+
publicITemplateEngineConfig<T>Config
11
13
{
12
-
publicstringCloseingDelimiter{get{Console.WriteLine($"RazorTemplateEngine has no {nameof(CloseingDelimiter)}");return"";}set=>Console.WriteLine($"Can not set {nameof(CloseingDelimiter)} for RazorTemplateEngine");}
13
-
ITemplateEngineConfig<T>_config;
14
-
publicITemplateEngineConfig<T>Config
14
+
get=>_config;
15
+
set
15
16
{
16
-
get=>_config;
17
-
set
18
-
{
19
-
_config=value;
20
-
this.NullStringValue=_config.NullStringValue;
21
-
this.OpeningDelimiter=_config.OpeningDelimiter;
22
-
this.CloseingDelimiter=_config.CloseingDelimiter;
23
-
this.TemplateDataModel=_config.TemplateDataModel;
24
-
this.TemplateString=_config.TemplateString;
25
-
this.CultureInfo=_config.CultureInfo;
26
-
}
17
+
_config=value;
18
+
this.NullStringValue=_config.NullStringValue;
19
+
this.OpeningDelimiter=_config.OpeningDelimiter;
20
+
this.CloseingDelimiter=_config.CloseingDelimiter;
21
+
this.TemplateDataModel=_config.TemplateDataModel;
22
+
this.TemplateString=_config.TemplateString;
23
+
this.CultureInfo=_config.CultureInfo;
27
24
}
28
-
publicCultureInfoCultureInfo{get{Console.WriteLine($"{nameof(RazorTemplateEngine<T>)} can not maipulate {nameof(CultureInfo)}");returnnull;}set=>Console.WriteLine($"{nameof(RazorTemplateEngine<T>)} can not maipulate {nameof(CultureInfo)}");}
25
+
}
26
+
publicCultureInfoCultureInfo{get{Console.WriteLine($"{nameof(RazorTemplateEngine<T>)} can not maipulate {nameof(CultureInfo)}");returnnull;}set=>Console.WriteLine($"{nameof(RazorTemplateEngine<T>)} can not maipulate {nameof(CultureInfo)}");}
29
27
30
-
publicstringNullStringValue
31
-
{
32
-
get=>"String.Empty";
33
-
set{Console.WriteLine(newWarningException($"{nameof(RazorTemplateEngine<T>)} can not maipulate {nameof(NullStringValue)}").Message);}
34
-
}
35
-
publicstringOpeningDelimiter
36
-
{
37
-
get
38
-
{
39
-
Console.WriteLine(newWarningException($"RazorTemplateEngine has no {nameof(OpeningDelimiter)}").Message);
40
-
return"";
41
-
}
42
-
set
43
-
{
44
-
Console.WriteLine(newWarningException($"Can not set {nameof(OpeningDelimiter)} for RazorTemplateEngine").Message);
0 commit comments