6 overrides of IsSubclassOf
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
258public override bool IsSubclassOf(Type c)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
200public sealed override bool IsSubclassOf(Type c) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
206public override bool IsSubclassOf(Type c) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
937public override bool IsSubclassOf(Type c)
src\System\RuntimeType.CoreCLR.cs (1)
3265public override bool IsSubclassOf(Type type)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
288public override bool IsSubclassOf(Type c)
116 references to IsSubclassOf
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
435return baseType == derivedType || derivedType.GetTypeInfo().IsSubclassOf(baseType);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
381if (returnTypeInfo.IsSubclassOf(typeof(Stream))) 387else if (returnTypeInfo.IsSubclassOf(typeof(XmlReader))) 391else if (returnTypeInfo.IsSubclassOf(typeof(TextReader)))
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
73if (type.GetTypeInfo().IsSubclassOf(typeof(SchemaImporterExtension)))
GenerateDocumentationAndConfigFiles (1)
CodeFixerExtensions.cs (1)
40if (typeInfo.IsSubclassOf(typeof(CodeFixProvider)))
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
906else if (type == typeof(Exception) || type.GetTypeInfo().IsSubclassOf(typeof(Exception)))
Microsoft.Build.Framework (2)
BuildException\BuildExceptionSerializationHelper.cs (2)
33type.IsSubclassOf(typeof(Exception)) && 34type.IsSubclassOf(typeof(BuildExceptionBase));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
151return a == b || a.IsSubclassOf(b);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
24if (recommenderType.IsSubclassOf(typeof(AbstractSyntacticSingleKeywordRecommender)))
Microsoft.CodeAnalysis.Features (1)
Organizing\AbstractOrganizingService.cs (1)
38o.SyntaxNodeTypes.Any(t2 => t1 == t2 || t1.GetTypeInfo().IsSubclassOf(t2))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
151return a == b || a.IsSubclassOf(b);
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
692if (!arg.IsCollection || value == null || !arg.ItemValueType.IsSubclassOf(typeof(System.ValueType)) ||
Microsoft.ML.Data (3)
Data\DataViewTypeManager.cs (3)
60typeAttributes = typeAttributes.Where(attr => attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute))); 95typeAttributes = typeAttributes.Where(attr => attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute))); 157if (!attr.GetType().IsSubclassOf(typeof(DataViewTypeAttribute)))
Microsoft.VisualBasic.Core (9)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (2)
42If mi(i).DeclaringType.IsSubclassOf(Selected.DeclaringType) Then 1142ThisMember.DeclaringType.IsSubclassOf(mi(j).DeclaringType) Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
764If leftType.IsSubclassOf(rightType) Then Return -1
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (6)
225ThisMethod.DeclaringType.IsSubclassOf(match(j).DeclaringType) Then 243ThisMethod.DeclaringType.IsSubclassOf(match(j).DeclaringType) Then 1048(ThisMethod.DeclaringType.IsSubclassOf(match(j).DeclaringType) AndAlso 1581If match(i).DeclaringType.IsSubclassOf(BindToField.DeclaringType) Then 1707If ThisProperty.DeclaringType.IsSubclassOf(match(0).DeclaringType) Then 1714ElseIf match(0).DeclaringType.IsSubclassOf(ThisProperty.DeclaringType) Then
MSBuildTaskHost (2)
BuildExceptionSerializationHelper.cs (2)
33type.IsSubclassOf(typeof(Exception)) && 34type.IsSubclassOf(typeof(BuildExceptionBase));
PresentationCore (3)
System\Windows\GlobalEventManager.cs (3)
153if ((ownerType == typeof(DependencyObject)) || ownerType.IsSubclassOf(typeof(DependencyObject))) 214if ((ownerType == typeof(DependencyObject)) || ownerType.IsSubclassOf(typeof(DependencyObject))) 248if ((ownerType == typeof(DependencyObject)) || ownerType.IsSubclassOf(typeof(DependencyObject)))
PresentationFramework (3)
System\Windows\Documents\ImmComposition.cs (2)
1415if (!navigator.GetElementType(LogicalDirection.Backward).IsSubclassOf(typeof(Inline))) 1466if (!navigator.GetElementType(LogicalDirection.Forward).IsSubclassOf(typeof(Inline)))
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
196bool isValidSubClass = type.IsSubclassOf(DependencyObjectType);
ReachFramework (1)
Serialization\Manager\MetroSerializationManager.cs (1)
1068MS.Internal.Invariant.Assert(serializerType.IsSubclassOf(typeof(ReachSerializer)));
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Refactoring\AbstractRefactoringHelpers`3.cs (1)
147return a.GetTypeInfo().IsSubclassOf(b) || a == b;
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectEventDescriptor.cs (1)
89Debug.Assert(type.IsSubclassOf(typeof(Delegate)), $"Not a valid ReflectEvent: {componentClass.FullName}. {name} {type.FullName}");
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationProperty.cs (1)
390else if (Type.IsSubclassOf(typeof(ConfigurationElement)))
System.Data.Common (2)
System\Data\Common\DbProviderFactories.cs (2)
171if (!providerFactoryClass.IsSubclassOf(typeof(DbProviderFactory))) 181if (!providerInstance.FieldType.IsSubclassOf(typeof(DbProviderFactory)))
System.Linq.Expressions (11)
System\Dynamic\Utils\TypeUtils.cs (2)
514return t.IsSubclassOf(typeof(MulticastDelegate)); 928AreEquivalent(type, subType) || subType.IsSubclassOf(type);
System\Linq\Expressions\DynamicExpression.cs (5)
868if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 895if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 925if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 958if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 994if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate();
System\Linq\Expressions\InvocationExpression.cs (1)
746if (!expression.Type.IsSubclassOf(typeof(MulticastDelegate)))
System\Runtime\CompilerServices\CallSite.cs (2)
91if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw System.Linq.Expressions.Error.TypeMustBeDerivedFromSystemDelegate(); 217if (!typeof(T).IsSubclassOf(typeof(MulticastDelegate))) throw System.Linq.Expressions.Error.TypeMustBeDerivedFromSystemDelegate();
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
53if (!target.IsSubclassOf(typeof(MulticastDelegate)))
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
63else if (type.IsSubclassOf(typeof(Enum)) && value != null)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
94if (!excType.IsSubclassOf(typeof(Exception)) && excType != typeof(Exception))
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
53if (c.IsSubclassOf(del))
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
117if (typeInfo.IsSubclassOf(this))
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
213if (usingResourceSet != null && (usingResourceSet != typeof(ResourceSet)) && !usingResourceSet.IsSubclassOf(typeof(ResourceSet)))
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
278if (c.IsSubclassOf(this))
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
126public virtual bool IsEnum { [Intrinsic] get => IsSubclassOf(typeof(Enum)); } 140protected virtual bool IsValueTypeImpl() => IsSubclassOf(typeof(ValueType));
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
352if (c.IsSubclassOf(this))
src\System\Attribute.CoreCLR.cs (10)
20Debug.Assert(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 124Debug.Assert(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 455if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 494if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 542if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 581if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 649if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 667if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 707if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 737if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute))
src\System\Reflection\Emit\CustomAttributeBuilder.cs (4)
152&& !con.DeclaringType!.IsSubclassOf(property.DeclaringType!)) 164!con.DeclaringType.IsSubclassOf(((RuntimeTypeBuilder)property.DeclaringType).BakedRuntimeType)) 204&& !con.DeclaringType!.IsSubclassOf(namedField.DeclaringType!)) 216!con.DeclaringType.IsSubclassOf(((RuntimeTypeBuilder)namedFields[i].DeclaringType!).BakedRuntimeType))
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
883if (interfaces[i].IsSubclassOf(this))
src\System\Reflection\RuntimeParameterInfo.cs (1)
307else if (attributeType.IsSubclassOf(typeof(CustomConstantAttribute)))
src\System\RuntimeType.CoreCLR.cs (1)
2947if (match == null || fieldInfo.DeclaringType!.IsSubclassOf(match.DeclaringType!) || match.DeclaringType!.IsInterface)
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
130return (thisType.Equals(otherType) || thisType.IsSubclassOf(otherType) || otherType.IsSubclassOf(thisType));
System.Private.Xml (4)
System\Xml\Schema\DataTypeImplementation.cs (1)
433return baseType == derivedType || derivedType.IsSubclassOf(baseType);
System\Xml\Schema\Preprocessor.cs (3)
360if (returnType.IsSubclassOf(typeof(Stream))) 366else if (returnType.IsSubclassOf(typeof(XmlReader))) 370else if (returnType.IsSubclassOf(typeof(TextReader)))
System.Reflection.Context (4)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
290return _typeInfo.IsSubclassOf(c);
System\Reflection\Context\Projection\ProjectingType.cs (1)
179return UnderlyingType.IsSubclassOf(otherType.UnderlyingType);
System\Reflection\Context\Virtual\InheritedMethodInfo.cs (1)
19Debug.Assert(reflectedType.IsSubclassOf(baseMethod.DeclaringType!));
System\Reflection\Context\Virtual\InheritedPropertyInfo.cs (1)
19Debug.Assert(reflectedType.IsSubclassOf(baseProperty.DeclaringType!));
System.Reflection.Emit (1)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
1400if (interfaces[i].IsSubclassOf(this))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Assignability.cs (1)
65if (fromTypeInfo.IsSubclassOf(toTypeInfo))
System.Security.Cryptography.Xml (11)
System\Security\Cryptography\Xml\SignedXml.cs (2)
1107if (expectedType.IsSubclassOf(actualType)) 1126if (actualType.IsSubclassOf(expectedType))
System\Security\Cryptography\Xml\Transform.cs (1)
105if (inputType == InputTypes[i] || inputType.IsSubclassOf(InputTypes[i]))
System\Security\Cryptography\Xml\XmlDsigBase64Transform.cs (1)
126if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream)))
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (1)
78if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream)))
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (2)
174if (type == typeof(XmlNodeList) || type.IsSubclassOf(typeof(XmlNodeList))) 179else if (type == typeof(XmlDocument) || type.IsSubclassOf(typeof(XmlDocument)))
System\Security\Cryptography\Xml\XmlDsigExcC14NTransform.cs (1)
115if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream)))
System\Security\Cryptography\Xml\XmlDsigXPathTransform.cs (1)
193if (type != typeof(XmlNodeList) && !type.IsSubclassOf(typeof(XmlNodeList)))
System\Security\Cryptography\Xml\XmlDsigXsltTransform.cs (1)
145if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream)))
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (1)
116if ((type != typeof(XmlDocument)) && (!type.IsSubclassOf(typeof(XmlDocument))))
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1469Debug.Assert(GetType().IsSubclassOf(type)); // RibbonMenuButton is a subclass of MenuBase
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
2651if (!editControlType.IsSubclassOf(Type.GetType("System.Windows.Forms.Control")!) || editingCtrlInterface is null) 2658&& !_latestEditingControl.GetType().IsSubclassOf(editControlType))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1122((editingControlType == typeof(DataGridViewComboBoxEditingControl) && !editingControlType.IsSubclassOf(typeof(DataGridViewComboBoxEditingControl))) || 1123(editingControlType == typeof(DataGridViewTextBoxEditingControl) && !editingControlType.IsSubclassOf(typeof(DataGridViewTextBoxEditingControl))));
System\Windows\Forms\DataBinding\Binding.cs (4)
712if (e.Value is not null && (e.Value.GetType().IsSubclassOf(type) || e.Value.GetType() == type || e.Value is DBNull)) 728if (ret is not null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 786if (ret is not null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 802if (ret is not null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type))
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ComponentTray.cs (1)
760if (!compType.IsSubclassOf(typeof(Control)))
System.Windows.Forms.Design.Tests (2)
EnsureDesignerTests.cs (1)
20.Where(t => t.IsSubclassOf(typeof(ComponentDesigner))
EnsureEditorsTests.cs (1)
32.Where(t => t.IsSubclassOf(typeof(UITypeEditor))
System.Windows.Forms.Tests (3)
System\Windows\Forms\ApplicationContextTests.cs (1)
391Where(type => type == typeof(ApplicationContext) || type.IsSubclassOf(typeof(ApplicationContext))))
System\Windows\Forms\DataGridViewElementTests.cs (2)
39type.IsSubclassOf(typeof(DataGridViewBand)) || type.IsSubclassOf(typeof(DataGridViewCell))))
System.Xaml (1)
System\Xaml\Schema\MemberReflector.cs (1)
256if (!derivedType.Equals(method.DeclaringType) && !derivedType.IsSubclassOf(method.DeclaringType))