diff --git a/Source/Euonia.Core/Reflection/PropertyAccessorCache.cs b/Source/Euonia.Core/Reflection/PropertyAccessorCache.cs index e4155be..34314e4 100644 --- a/Source/Euonia.Core/Reflection/PropertyAccessorCache.cs +++ b/Source/Euonia.Core/Reflection/PropertyAccessorCache.cs @@ -25,12 +25,12 @@ static PropertyAccessorCache() } /// - /// + /// Get the lambda expression for the property. /// /// /// public static LambdaExpression Get(string propertyName) { - return _cache.TryGetValue(propertyName, out var result) ? result : null; + return _cache.GetValueOrDefault(propertyName); } }