src/Common.Logging.Sitecore/Adapter/SitecoreLogger.cs
/// <summary>
/// The is in type hierarchy.
/// </summary>
/// <param name="currentType">
/// The current type.
/// </param>
/// <param name="checkType">
/// The check type.
/// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
The is in type hierarchy.
The is in type hierarchy .
private bool IsInTypeHierarchy(Type currentType, Type checkType)
        {
            for (; currentType != (Type)null && currentType != typeof(object); currentType = currentType.BaseType)
            {
                if (currentType == checkType)
                {
                    return true;
                }
            }
            return false;
        }
private bool IsInTypeHierarchy ( Type currentType , Type checkType ) { for ( ; currentType != ( Type ) null && currentType != typeof ( object ) ; currentType = currentType . BaseType ) { if ( currentType == checkType ) { return true ; } } return false ; }
The is in type hierarchy.
The is in type hierarchy .
None
currentType
Type
The current type.
The current type .
checkType
Type
The check type.
The check type .