We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d51b77 commit 5ce203dCopy full SHA for 5ce203d
Provider/src/FirebirdSql.EntityFrameworkCore.Firebird/Utilities/SharedTypeExtensions.cs
@@ -204,8 +204,7 @@ public static object GetDefaultValue(this Type type)
204
// A bit of perf code to avoid calling Activator.CreateInstance for common types and
205
// to avoid boxing on every call. This is about 50% faster than just calling CreateInstance
206
// for all value types.
207
- object value;
208
- return _commonTypeDictionary.TryGetValue(type, out value)
+ return _commonTypeDictionary.TryGetValue(type, out var value)
209
? value
210
: Activator.CreateInstance(type);
211
}
0 commit comments