@@ -49,15 +49,15 @@ public class ParsingConfig
49
49
/// <summary>
50
50
/// Gets or sets the <see cref="IDynamicLinkCustomTypeProvider"/>.
51
51
/// </summary>
52
- public IDynamicLinkCustomTypeProvider CustomTypeProvider
52
+ public IDynamicLinkCustomTypeProvider ? CustomTypeProvider
53
53
{
54
54
get
55
55
{
56
56
#if ! ( WINDOWS_APP || UAP10_0 || NETSTANDARD )
57
57
// Only use DefaultDynamicLinqCustomTypeProvider for full .NET Framework and .NET Core App 2.x and higher.
58
58
return _customTypeProvider ??= new DefaultDynamicLinqCustomTypeProvider ( this ) ;
59
59
#else
60
- return _customTypeProvider ;
60
+ return _customTypeProvider ;
61
61
#endif
62
62
}
63
63
@@ -141,21 +141,21 @@ public IQueryableAnalyzer QueryableAnalyzer
141
141
///
142
142
/// Default value is <c>false</c>.
143
143
/// </summary>
144
- public bool UseParameterizedNamesInDynamicQuery { get ; set ; } = false ;
144
+ public bool UseParameterizedNamesInDynamicQuery { get ; set ; }
145
145
146
146
/// <summary>
147
147
/// Allows the New() keyword to evaluate any available Type.
148
148
///
149
149
/// Default value is <c>false</c>.
150
150
/// </summary>
151
- public bool AllowNewToEvaluateAnyType { get ; set ; } = false ;
151
+ public bool AllowNewToEvaluateAnyType { get ; set ; }
152
152
153
153
/// <summary>
154
- /// Renames the (Typed)ParameterExpression empty Name to a the correct supplied name from `it`.
154
+ /// Renames the (Typed)ParameterExpression empty Name to the correct supplied name from `it`.
155
155
///
156
156
/// Default value is <c>false</c>.
157
157
/// </summary>
158
- public bool RenameParameterExpression { get ; set ; } = false ;
158
+ public bool RenameParameterExpression { get ; set ; }
159
159
160
160
/// <summary>
161
161
/// Prevents any System.Linq.Expressions.ParameterExpression.Name value from being empty by substituting a random 16 character word.
@@ -165,13 +165,12 @@ public IQueryableAnalyzer QueryableAnalyzer
165
165
public bool RenameEmptyParameterExpressionNames { get ; set ; }
166
166
167
167
/// <summary>
168
- /// By default, when a member is not found in a type and the type has a string based index accessor it will be parsed as an index accessor. Use
169
- /// this flag to disable this behaviour and have parsing fail when parsing an expression
170
- /// where a member access on a non existing member happens.
168
+ /// By default, when a member is not found in a type and the type has a string based index accessor it will be parsed as an index accessor.
169
+ /// Use this flag to disable this behaviour and have parsing fail when parsing an expression where a member access on a non-existing member happens.
171
170
///
172
171
/// Default value is <c>false</c>.
173
172
/// </summary>
174
- public bool DisableMemberAccessToIndexAccessorFallback { get ; set ; } = false ;
173
+ public bool DisableMemberAccessToIndexAccessorFallback { get ; set ; }
175
174
176
175
/// <summary>
177
176
/// By default, finding types by a simple name is not supported.
@@ -180,7 +179,7 @@ public IQueryableAnalyzer QueryableAnalyzer
180
179
///
181
180
/// Default value is <c>false</c>.
182
181
/// </summary>
183
- public bool ResolveTypesBySimpleName { get ; set ; } = false ;
182
+ public bool ResolveTypesBySimpleName { get ; set ; }
184
183
185
184
/// <summary>
186
185
/// Support enumeration-types from the System namespace in mscorlib. An example could be "StringComparison".
@@ -195,7 +194,7 @@ public IQueryableAnalyzer QueryableAnalyzer
195
194
///
196
195
/// Default value is <c>false</c>.
197
196
/// </summary>
198
- public bool DateTimeIsParsedAsUTC { get ; set ; } = false ;
197
+ public bool DateTimeIsParsedAsUTC { get ; set ; }
199
198
200
199
/// <summary>
201
200
/// The number parsing culture.
@@ -214,7 +213,7 @@ public IQueryableAnalyzer QueryableAnalyzer
214
213
///
215
214
/// Default value is <c>false</c>.
216
215
/// </summary>
217
- public bool NullPropagatingUseDefaultValueForNonNullableValueTypes { get ; set ; } = false ;
216
+ public bool NullPropagatingUseDefaultValueForNonNullableValueTypes { get ; set ; }
218
217
219
218
/// <summary>
220
219
/// Support casting to a full qualified type using a string (double-quoted value).
@@ -240,14 +239,14 @@ public IQueryableAnalyzer QueryableAnalyzer
240
239
///
241
240
/// Default value is <c>false</c>.
242
241
/// </summary>
243
- public bool SupportDotInPropertyNames { get ; set ; } = false ;
242
+ public bool SupportDotInPropertyNames { get ; set ; }
244
243
245
244
/// <summary>
246
245
/// Disallows the New() keyword to be used to construct a class.
247
246
///
248
247
/// Default value is <c>false</c>.
249
248
/// </summary>
250
- public bool DisallowNewKeyword { get ; set ; } = false ;
249
+ public bool DisallowNewKeyword { get ; set ; }
251
250
252
251
/// <summary>
253
252
/// Caches constant expressions to enhance performance. Periodic cleanup is performed to manage cache size, governed by this configuration.
0 commit comments