src/Shared/EntityFramework/Core/SchemaObjectModel/StructuredType.cs
// <summary>
// Determines whether this type is of the same type as baseType,
// or is derived from baseType.
// </summary>
// <returns> true if this type is of the baseType, false otherwise </returns>
Determines whether this type is of the same type as baseType,
or is derived from baseType.
Determines whether this type is of the same type as baseType or is derived from baseType .
public bool IsOfType(StructuredType baseType)
        {
            var type = this;
            while (type != null
                   && type != baseType)
            {
                type = type.BaseType;
            }
            return (type == baseType);
        }
public bool IsOfType ( StructuredType baseType ) { var type = this ; while ( type != null && type != baseType ) { type = type . BaseType ; } return ( type == baseType ) ; }
Determines whether this type is of the same type as baseType,
or is derived from baseType.
Determines whether this type is of the same type as baseType or is derived from baseType .
true if this type is of the baseType, false otherwise
true if this type is of the baseType false otherwise
baseType
StructuredType