Implemented interface member:
method
IsSubclassOf
System.Runtime.InteropServices._Type.IsSubclassOf(System.Type)
9 overrides of IsSubclassOf
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
205public override bool IsSubclassOf(Type c) { throw new NotSupportedException(); }
system\reflection\emit\typebuilder.cs (1)
1427public override bool IsSubclassOf(Type c)
system\reflection\emit\typebuilderinstantiation.cs (1)
229public override bool IsSubclassOf(Type c)
system\rttype.cs (1)
3677public override bool IsSubclassOf(Type type)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
625public override bool IsSubclassOf(Type c)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
403public override bool IsSubclassOf(Type potentialBaseType)
System.WorkflowServices (1)
System\Workflow\Activities\ContractType.cs (1)
423public override bool IsSubclassOf(Type type)
150 references to IsSubclassOf
mscorlib (30)
system\attribute.cs (10)
32Contract.Requires(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 140Contract.Requires(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 463if (!type.IsSubclassOf(typeof(Attribute)) && type != typeof(Attribute)) 518if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 575if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 621if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 697if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 718if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 761if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 796if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute))
system\reflection\customattribute.cs (4)
2217if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2284if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2400if (caType == a.GetType() || a.GetType().IsSubclassOf(caType)) 2512if (caType == a.GetType() || a.GetType().IsSubclassOf(caType))
system\reflection\emit\customattributebuilder.cs (4)
200&& !con.DeclaringType.IsSubclassOf(namedProperties[i].DeclaringType)) 212!con.DeclaringType.IsSubclassOf(((TypeBuilder)namedProperties[i].DeclaringType).BakedRuntimeType)) 252&& !con.DeclaringType.IsSubclassOf(namedFields[i].DeclaringType)) 264!con.DeclaringType.IsSubclassOf(((TypeBuilder)namedFields[i].DeclaringType).BakedRuntimeType))
system\reflection\emit\ilgenerator.cs (1)
1169if (!excType.IsSubclassOf(typeof(Exception)) && excType!=typeof(Exception)) {
system\reflection\emit\typebuilder.cs (1)
1344if (interfaces[i].IsSubclassOf(this))
system\reflection\eventinfo.cs (1)
173if (c.IsSubclassOf(del))
system\reflection\parameterinfo.cs (1)
661else if (attrType.IsSubclassOf(s_CustomConstantAttributeType))
system\reflection\typeinfo.cs (1)
63if (typeInfo.IsSubclassOf(this))
system\resources\resourcemanager.cs (1)
405if (usingResourceSet != null && (usingResourceSet != _minResourceSet) && !(usingResourceSet.IsSubclassOf(_minResourceSet)))
system\rttype.cs (2)
3379if (match == null || fieldInfo.DeclaringType.IsSubclassOf(match.DeclaringType) || match.DeclaringType.IsInterface) 3731if (c.IsSubclassOf(this))
system\security\principal\ircollection.cs (1)
173if ( !targetType.IsSubclassOf( typeof( IdentityReference )))
system\type.cs (3)
1103return IsSubclassOf(RuntimeType.EnumType); 1283return IsSubclassOf(RuntimeType.ValueType); 1691if (c.IsSubclassOf(this))
PresentationCore (5)
Core\CSharp\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)))
Shared\MS\Internal\SecurityHelper.cs (2)
727if (uri.GetType().IsSubclassOf(typeof(Uri))) 749if (uri.GetType().IsSubclassOf(typeof(Uri)))
PresentationFramework (2)
src\Framework\System\Windows\Documents\ImmComposition.cs (2)
1584if (!navigator.GetElementType(LogicalDirection.Backward).IsSubclassOf(typeof(Inline))) 1635if (!navigator.GetElementType(LogicalDirection.Forward).IsSubclassOf(typeof(Inline)))
System (1)
compmod\system\componentmodel\ReflectEventDescriptor.cs (1)
94Debug.Assert(type.IsSubclassOf(typeof(Delegate)), "Not a valid ReflectEvent: " + componentClass.FullName + "." + name + " " + type.FullName);
System.Activities (1)
System\Activities\Statements\TryCatch.cs (1)
333if (catchHandler.ExceptionType.IsSubclassOf(potentialCatch.ExceptionType))
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (2)
58return instance.Type == typeof(ActivityDelegate) || instance.Type.IsSubclassOf(typeof(ActivityDelegate)); 137if (property == null || !property.Type.IsSubclassOf(typeof(ActivityDelegate)))
System\Activities\Core\Presentation\InvokeDelegateValidationFeature.cs (1)
145if (!property.Type.IsSubclassOf(typeof(ActivityDelegate)))
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (1)
606if (type != typeof(Exception) && !type.IsSubclassOf(typeof(Exception)))
System.Activities.Presentation (6)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (1)
177if (type.UnderlyingType != null && type.UnderlyingType.IsSubclassOf(typeof(Activity)) && this.shouldWriteDebugSymbol)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
91property.PropertyType.IsSubclassOf(typeof(ActivityDelegate)) &&
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (3)
51if (oldModelItemType.IsSubclassOf(typeof(Activity)) && newModelItemType.IsSubclassOf(typeof(Activity))) 82Fx.Assert(activityType.IsSubclassOf(typeof(Activity)), "activityType is not a subclass of System.Activities.Activity");
System.Configuration (1)
System\Configuration\ConfigurationProperty.cs (1)
429else if (!_type.IsSubclassOf(typeof(ConfigurationElement))) {
System.Core (11)
Microsoft\Scripting\Actions\CallSite.cs (2)
102if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 193if (!typeof(T).IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate();
Microsoft\Scripting\Actions\CallSiteBinder.cs (1)
69if (!target.IsSubclassOf(typeof(MulticastDelegate))) {
Microsoft\Scripting\Ast\DynamicExpression.cs (5)
706if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 732if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 761if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 793if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate(); 828if (!delegateType.IsSubclassOf(typeof(MulticastDelegate))) throw Error.TypeMustBeDerivedFromSystemDelegate();
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
194if (!expression.Type.IsSubclassOf(typeof(MulticastDelegate))) {
Microsoft\Scripting\Ast\TypeUtils.cs (2)
283return t.IsSubclassOf(typeof(System.MulticastDelegate)); 605return AreEquivalent(type, subType) || subType.IsSubclassOf(type);
System.Data (9)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
91property.PropertyType.IsSubclassOf(typeof(ActivityDelegate)) &&
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1102public override bool IsSubclassOf(Type c) { return _baseReflectionType.IsSubclassOf(c); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (3)
51if (oldModelItemType.IsSubclassOf(typeof(Activity)) && newModelItemType.IsSubclassOf(typeof(Activity))) 82Fx.Assert(activityType.IsSubclassOf(typeof(Activity)), "activityType is not a subclass of System.Activities.Activity");
fx\src\data\System\Data\CodeGen\datacache.cs (1)
821if(col.DataType.IsSubclassOf(typeof(System.ValueType))) {
fx\src\data\System\Data\Common\DbProviderFactories.cs (3)
77if (providerInstance.FieldType.IsSubclassOf(typeof(DbProviderFactory))) { 145if ((null != providerInstance) && (providerInstance.FieldType.IsSubclassOf(typeof(DbProviderFactory)))) 191if ((null != providerInstance) && (providerInstance.FieldType.IsSubclassOf(typeof(DbProviderFactory))))
System.Data.Entity (2)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
381if (!viewContainerType.IsSubclassOf(typeof(EntityViewContainer)))
System\Data\Objects\ObjectViewQueryResultData.cs (1)
95((elementType != typeof(DbDataRecord)) && elementType.IsSubclassOf(typeof(DbDataRecord))));
System.Data.Linq (7)
SortableBindingList.cs (1)
107return (t.Equals(typeof(XNode)) || t.IsSubclassOf(typeof(XNode)));
SqlClient\Reader\ObjectReaderCompiler.cs (5)
1569!(!actualType.IsValueType && actualType.IsSubclassOf(expectedType)) 1586else if ((actualType.IsSubclassOf(expectedType) || expectedType.IsSubclassOf(actualType)) 1595elementType.IsSubclassOf(genExpectedTypeArgs[0]) || 1596genExpectedTypeArgs[0].IsSubclassOf(elementType) ||
SqlClient\SqlProvider.cs (1)
1365else if (mce.Method.DeclaringType.IsSubclassOf(typeof(DataContext))) {
System.Runtime.Serialization (2)
System\Runtime\Serialization\PrimitiveDataContract.cs (2)
154return (thisType.Equals(otherType) || thisType.IsSubclassOf(otherType) || otherType.IsSubclassOf(thisType));
System.Security (11)
system\security\cryptography\xml\signedxml.cs (2)
1066if (expectedType.IsSubclassOf(actualType)) 1085if (actualType.IsSubclassOf(expectedType))
system\security\cryptography\xml\transform.cs (9)
260if (inputType == InputTypes[i] || inputType.IsSubclassOf(InputTypes[i])) 423if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream))) 533if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream))) 652if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream))) 810if (type != typeof(XmlNodeList) && !type.IsSubclassOf(typeof(XmlNodeList))) 932if (type != typeof(Stream) && !type.IsSubclassOf(typeof(Stream))) 1080if (type == typeof(XmlNodeList) || type.IsSubclassOf(typeof(XmlNodeList))) { 1085} else if (type == typeof(XmlDocument) || type.IsSubclassOf(typeof(XmlDocument))) { 1427if ((type != typeof(XmlDocument)) || (!type.IsSubclassOf(typeof(XmlDocument))))
System.ServiceModel (9)
System\ServiceModel\Configuration\ExtensionsSection.cs (4)
162if (extensionType.IsSubclassOf(typeof(BehaviorExtensionElement))) 166else if (extensionType.IsSubclassOf(typeof(BindingElementExtensionElement))) 170else if (extensionType.IsSubclassOf(typeof(BindingCollectionElement))) 174else if (extensionType.IsSubclassOf(typeof(EndpointCollectionElement)))
System\ServiceModel\Security\SecurityProtocol.cs (2)
822if ((exception.GetType() == typeof(MessageSecurityException) || exception.GetType().IsSubclassOf(typeof(MessageSecurityException))) 823|| (exception.GetType() == typeof(SecurityTokenException) || exception.GetType().IsSubclassOf(typeof(SecurityTokenException))))
System\ServiceModel\Security\SecurityUtils.cs (3)
1412if ((token != null) && !messageProperty.TransportToken.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken))) 1421if ((token != null) && !messageProperty.ProtectionToken.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken))) 1433if ((token != null) && !supportingTokenSpecification.SecurityToken.GetType().IsSubclassOf(typeof(UserNameSecurityToken)))
System.Web (26)
Configuration\HealthMonitoringSectionHelper.cs (1)
479eventType.IsSubclassOf(_eventMappingSettings.RealType))) {
Configuration\RuleInfoComparer.cs (2)
50else if (xType.IsSubclassOf(yType)) { 53else if (yType.IsSubclassOf(xType)) {
Configuration\TransformerInfoCollection.cs (1)
89if (transformerType.IsSubclassOf(typeof(WebPartTransformer)) == false) {
HttpApplicationFactory.cs (1)
262!parameters[1].ParameterType.IsSubclassOf(typeof(System.EventArgs)))
UI\WebControls\Menu.cs (2)
1926Debug.Assert(_designTimeTextWriterType.IsSubclassOf(typeof(HtmlTextWriter))); 2443if (writerType != null && writerType.IsSubclassOf(typeof(HtmlTextWriter))) {
UI\WebParts\ConnectionPoint.cs (1)
46if (!controlType.IsSubclassOf(typeof(Control))) {
UI\WebParts\ConnectionsZone.cs (4)
673Debug.Assert(transformerType.IsSubclassOf(typeof(WebPartTransformer))); 757Debug.Assert(transformerType.IsSubclassOf(typeof(WebPartTransformer))); 841Debug.Assert(providerInfo != null && providerInfo.TransformerType != null && providerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer))); 870Debug.Assert(consumerInfo != null && consumerInfo.TransformerType != null && consumerInfo.TransformerType.IsSubclassOf(typeof(WebPartTransformer)));
UI\WebParts\ImportCatalogPart.cs (2)
240if (!partType.IsSubclassOf(typeof(WebPart)) && !partType.IsSubclassOf(typeof(Control))) {
UI\WebParts\PersonalizableTypeEntry.cs (1)
106else if (declaringTypeX.IsSubclassOf(declaringTypeY)) {
UI\WebParts\TransformerTypeCollection.cs (2)
29if (!value.IsSubclassOf(typeof(WebPartTransformer))) { 52if (!((Type)obj).IsSubclassOf(typeof(WebPartTransformer))) {
UI\WebParts\WebPartManager.cs (7)
2772if (!partType.IsSubclassOf(typeof(WebPart))) { 2773if (!partType.IsSubclassOf(typeof(Control))) { 3068if (converterType != null && converterType.IsSubclassOf(typeof(TypeConverter))) { 3329if (type.IsSubclassOf(typeof(WebPartTransformer))) { 3359else if (type.IsSubclassOf(typeof(WebPart))) { 3383else if (type.IsSubclassOf(typeof(Control))) { 4239if (converterType != null && converterType.IsSubclassOf(typeof(TypeConverter))) {
UI\WebParts\WebPartTransformerAttribute.cs (1)
66if (!transformerType.IsSubclassOf(typeof(WebPartTransformer))) {
UI\WebParts\WebPartUtil.cs (1)
47if (!connectionPointType.IsSubclassOf(baseType)) {
System.Web.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
2983if (type.IsSubclassOf(listItemPI.PropertyType))
System.Web.Extensions (1)
Compilation\WCFModel\SchemaMerger.cs (1)
720if (propertyType == ignoreableType || propertyType.IsSubclassOf(ignoreableType))
System.Web.Services (1)
System\Web\Services\WebServiceAttribute.cs (1)
99if (derived.IsSubclassOf(mostDerived)) {
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Binding.cs (4)
743if (e.Value != null && (e.Value.GetType().IsSubclassOf(type) || e.Value.GetType() == type || e.Value is System.DBNull)) 753if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 813if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type)) 824if (ret != null && (ret.GetType().IsSubclassOf(type) || ret.GetType() == type))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
2689if (!editControlType.IsSubclassOf(Type.GetType("System.Windows.Forms.Control")) || 2696!this.latestEditingControl.GetType().IsSubclassOf(editControlType))
System.Windows.Forms.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
2983if (type.IsSubclassOf(listItemPI.PropertyType))
System.Workflow.Activities (1)
LocalService\WorkflowMessageEventHandler.cs (1)
88if (parameters[1].ParameterType.IsSubclassOf(typeof(ExternalDataEventArgs))
System.Workflow.ComponentModel (3)
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
148return (et == canHandleType || et.IsSubclassOf(canHandleType));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (2)
594if (typeToGetPropertiesOn == typeof(string) || (TypeProvider.IsAssignable(typeof(System.Delegate), typeToGetPropertiesOn) && !this.boundType.IsSubclassOf(typeof(Delegate))))//ignore char item[int] on the string 679if (this.boundType.IsSubclassOf(typeof(Delegate)))//System.MulticastDelegate ???
System.Workflow.Runtime (4)
WorkflowRuntime.cs (4)
900if (basetype.IsSubclassOf(typeof(TrackingService))) 969if (type.IsSubclassOf(typeof(TrackingService))) 996Debug.Assert(type.IsSubclassOf(typeof(TrackingService)), "Argument should be a subtype of TrackingService"); 1013Debug.Assert(type.IsSubclassOf(typeof(TrackingService)), "Argument should be a subtype of TrackingService");
System.Xml (5)
System\Xml\Schema\DataTypeImplementation.cs (1)
388return baseType == derivedType || derivedType.IsSubclassOf(baseType);
System\Xml\Schema\Preprocessor.cs (3)
319if (returnType.IsSubclassOf(typeof(Stream)) ) { 324else if (returnType.IsSubclassOf(typeof(XmlReader)) ) { 327else if (returnType.IsSubclassOf(typeof(TextReader))) {
System\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
64if (type.IsSubclassOf(typeof(SchemaImporterExtension))) {