File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public abstract class BaseAttribute : Attribute
13
13
private int max ;
14
14
private object @default ;
15
15
private Infrastructure . LocalizableAttributeProperty helpText ;
16
- private string metaValue ;
16
+ private Infrastructure . LocalizableAttributeProperty metaValue ;
17
17
private Type resourceType ;
18
18
19
19
/// <summary>
@@ -24,7 +24,7 @@ protected internal BaseAttribute()
24
24
min = - 1 ;
25
25
max = - 1 ;
26
26
helpText = new Infrastructure . LocalizableAttributeProperty ( nameof ( HelpText ) ) ;
27
- metaValue = string . Empty ;
27
+ metaValue = new Infrastructure . LocalizableAttributeProperty ( nameof ( MetaValue ) ) ;
28
28
resourceType = null ;
29
29
}
30
30
@@ -101,16 +101,8 @@ public string HelpText
101
101
/// </summary>
102
102
public string MetaValue
103
103
{
104
- get { return metaValue ; }
105
- set
106
- {
107
- if ( value == null )
108
- {
109
- throw new ArgumentNullException ( "value" ) ;
110
- }
111
-
112
- metaValue = value ;
113
- }
104
+ get => metaValue . Value ?? string . Empty ;
105
+ set => metaValue . Value = value ?? throw new ArgumentNullException ( "value" ) ;
114
106
}
115
107
116
108
/// <summary>
You can’t perform that action at this time.
0 commit comments