src/NLog/Internal/Reflection/ObjectReflectionCache.cs
/// <summary>
/// Scans properties for name (Skips string-compare and value-lookup until finding match)
/// </summary>
Scans properties for name (Skips string-compare and value-lookup until finding match)
Scans properties for name ( Skips string - compare and value - lookup until finding match )
private bool TryFastLookupPropertyValue(string name, out PropertyValue propertyValue)
            {
                int nameHashCode = NameComparer.GetHashCode(name);
                foreach (var fastProperty in _fastLookup)
                {
                    if (fastProperty.NameHashCode == nameHashCode && NameComparer.Equals(fastProperty.Name, name))
                    {
                        propertyValue = new PropertyValue(_object, fastProperty);
                        return true;
                    }
                }
                propertyValue = default(PropertyValue);
                return false;
            }
private bool TryFastLookupPropertyValue ( string name , out PropertyValue propertyValue ) { int nameHashCode = NameComparer . GetHashCode ( name ) ; foreach ( var fastProperty in _fastLookup ) { if ( fastProperty . NameHashCode == nameHashCode && NameComparer . Equals ( fastProperty . Name , name ) ) { propertyValue = new PropertyValue ( _object , fastProperty ) ; return true ; } } propertyValue = default ( PropertyValue ) ; return false ; }
Scans properties for name (Skips string-compare and value-lookup until finding match)
Scans properties for name ( Skips string - compare and value - lookup until finding match )
name
string
PropertyValue
out