@@ -26,9 +26,7 @@ public sealed class DateTimePickerAction : IAction
2626 /// </summary>
2727 /// <param name="mode">The mode of the Datetime picker action.</param>
2828 public DateTimePickerAction ( DateTimePickerMode mode )
29- {
30- _mode = mode ;
31- }
29+ => _mode = mode ;
3230
3331 internal DateTimePickerAction ( )
3432 {
@@ -46,11 +44,7 @@ ActionType IAction.Type
4644 [ JsonProperty ( "data" ) ]
4745 public string ? Data
4846 {
49- get
50- {
51- return _data ;
52- }
53-
47+ get => _data ;
5448 set
5549 {
5650 if ( value is null || string . IsNullOrWhiteSpace ( value ) )
@@ -69,11 +63,7 @@ public string? Data
6963 [ JsonIgnore ]
7064 public DateTime ? Initial
7165 {
72- get
73- {
74- return _initial ;
75- }
76-
66+ get => _initial ;
7767 set
7868 {
7969 var adjustedValue = AdjustedDateTimeByMode ( value ) ;
@@ -91,11 +81,7 @@ public DateTime? Initial
9181 [ JsonProperty ( "label" ) ]
9282 public string ? Label
9383 {
94- get
95- {
96- return _label ;
97- }
98-
84+ get => _label ;
9985 set
10086 {
10187 if ( value is null || string . IsNullOrWhiteSpace ( value ) )
@@ -114,11 +100,7 @@ public string? Label
114100 [ JsonIgnore ]
115101 public DateTime ? Max
116102 {
117- get
118- {
119- return _max ;
120- }
121-
103+ get => _max ;
122104 set
123105 {
124106 var adjustedValue = AdjustedDateTimeByMode ( value ) ;
@@ -135,11 +117,7 @@ public DateTime? Max
135117 [ JsonIgnore ]
136118 public DateTime ? Min
137119 {
138- get
139- {
140- return _min ;
141- }
142-
120+ get => _min ;
143121 set
144122 {
145123 var adjustedValue = AdjustedDateTimeByMode ( value ) ;
@@ -154,19 +132,16 @@ public DateTime? Min
154132 /// Gets the action mode for the datetime picker.
155133 /// </summary>
156134 [ JsonIgnore ]
157- public DateTimePickerMode Mode => _mode ;
135+ public DateTimePickerMode Mode
136+ => _mode ;
158137
159138 /// <summary>
160139 /// Gets or sets the formatted initial value.
161140 /// </summary>
162141 [ JsonProperty ( "initial" ) ]
163142 private string InitialFormatted
164143 {
165- get
166- {
167- return GetFormattedDateTimeByMode ( _initial ) ;
168- }
169-
144+ get => GetFormattedDateTimeByMode ( _initial ) ;
170145 set
171146 {
172147 if ( string . IsNullOrEmpty ( value ) )
@@ -182,11 +157,7 @@ private string InitialFormatted
182157 [ JsonProperty ( "max" ) ]
183158 private string MaxFormatted
184159 {
185- get
186- {
187- return GetFormattedDateTimeByMode ( _max ) ;
188- }
189-
160+ get => GetFormattedDateTimeByMode ( _max ) ;
190161 set
191162 {
192163 if ( string . IsNullOrEmpty ( value ) )
@@ -202,11 +173,7 @@ private string MaxFormatted
202173 [ JsonProperty ( "min" ) ]
203174 private string MinFormatted
204175 {
205- get
206- {
207- return GetFormattedDateTimeByMode ( _min ) ;
208- }
209-
176+ get => GetFormattedDateTimeByMode ( _min ) ;
210177 set
211178 {
212179 if ( string . IsNullOrEmpty ( value ) )
0 commit comments