Skip to content

Commit 5ce203d

Browse files
committed
Using out var.
1 parent 0d51b77 commit 5ce203d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Provider/src/FirebirdSql.EntityFrameworkCore.Firebird/Utilities/SharedTypeExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ public static object GetDefaultValue(this Type type)
204204
// A bit of perf code to avoid calling Activator.CreateInstance for common types and
205205
// to avoid boxing on every call. This is about 50% faster than just calling CreateInstance
206206
// for all value types.
207-
object value;
208-
return _commonTypeDictionary.TryGetValue(type, out value)
207+
return _commonTypeDictionary.TryGetValue(type, out var value)
209208
? value
210209
: Activator.CreateInstance(type);
211210
}

0 commit comments

Comments
 (0)