13 overrides of BaseType
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
368public override Type BaseType => typeof(Array);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
141public override Type? BaseType
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
96public override Type? BaseType => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
85public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
58public override Type? BaseType => typeImpl.BaseType;
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
17public override Type? BaseType => GetBaseType();
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
87public override Type? BaseType => m_typeBuilder.BaseType;
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
100public override Type? BaseType => m_type.BaseType;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
659public override Type? BaseType => m_typeParent;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
37public override Type? BaseType
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
368public override Type BaseType => typeof(Array);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
159public sealed override Type? BaseType => GetRoBaseType();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListBindingHelperTests.cs (1)
781public override Type BaseType => throw new NotImplementedException();
270 references to BaseType
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
271type = type.BaseType;
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
265var baseType = type.BaseType; 274baseType = baseType.BaseType;
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
552derivedType = derivedType.GetTypeInfo().BaseType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
738Type currentType = propertyInfo.DeclaringType.GetTypeInfo().BaseType; 766currentType = currentType.GetTypeInfo().BaseType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
389StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.GetTypeInfo().BaseType, false), limiter);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (5)
884baseType = info.BaseType; 898baseType = info.BaseType; 910baseType = info.BaseType; 1247currentType = currentType.GetTypeInfo().BaseType; 1358for (Type t = type; t != null; t = t.GetTypeInfo().BaseType)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
798TypeModel baseModel = _modelScope.GetTypeModel(model.Type.GetTypeInfo().BaseType, false); 802throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.Type.GetTypeInfo().BaseType.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (2)
1260Type elementBaseType = elementType.GetTypeInfo().BaseType; 1265elementBaseType = elementBaseType.GetTypeInfo().BaseType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
796Type baseType = type.GetTypeInfo().BaseType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
1005Type baseType = type.GetTypeInfo().BaseType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2164type = type.GetTypeInfo().BaseType;
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
20return type.GetTypeInfo().BaseType;
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
183 /// <see cref="System.Type.BaseType"/>
Infrastructure.Common (1)
xunit\ConditionAttribute.cs (1)
120return LookupConditionalMethod(ti.BaseType, name);
Microsoft.AspNetCore.Components (1)
Reflection\MemberAssignment.cs (1)
46currentType = currentType.BaseType;
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Binding\ReflectionServiceInvokerResolver.cs (1)
80currentType = currentType.BaseType;
src\Grpc\JsonTranscoding\src\Shared\Server\BindMethodFinder.cs (5)
62} while ((currentServiceType = currentServiceType.BaseType) != null); 92var baseType = serviceImplementation.BaseType; 95while (baseType?.BaseType?.BaseType != null) 97baseType = baseType.BaseType;
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
43if (grpcMethodMetadata.ServiceType.BaseType?.DeclaringType is { } staticService)
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Http.Extensions (2)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
104type = type.BaseType;
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
84while (type.BaseType?.Assembly == type.Assembly) 86type = type.BaseType;
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
84while (type.BaseType?.Assembly == type.Assembly) 86type = type.BaseType;
Microsoft.AspNetCore.Identity.Test (2)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (2)
84while (type.BaseType?.Assembly == type.Assembly) 86type = type.BaseType;
Microsoft.AspNetCore.JsonPatch (1)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
135currentTypeInfo = currentTypeInfo.BaseType!.GetTypeInfo();
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
144return cloneMethod != null && (cloneMethod.ReturnType == type || cloneMethod.ReturnType == type.BaseType);
ModelBinding\SuppressChildValidationMetadataProvider.cs (1)
97return IsMatchingName(type.BaseType);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TemplateRenderer.cs (1)
205type = type.BaseType;
Microsoft.AspNetCore.OpenApi (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
Microsoft.AspNetCore.Routing (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Routing.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Shared.Tests (6)
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
TypeNameHelperTest.cs (3)
145typeof(PartiallyClosedGeneric<>).BaseType, 184{ typeof(PartiallyClosedGeneric<>).BaseType,"Microsoft.Extensions.Internal.TypeNameHelperTest+C<T, int>" }, 204{ typeof(PartiallyClosedGeneric<>).BaseType,"C<T, int>" },
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\SignalR\common\Shared\ReflectionHelper.cs (1)
41nullableType = nullableType.BaseType;
Microsoft.AspNetCore.SignalR.Core (4)
Internal\TypeBaseEnumerationExtensions.cs (1)
14current = current.BaseType;
src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
src\SignalR\common\Shared\ReflectionHelper.cs (1)
41nullableType = nullableType.BaseType;
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
80ErrorUtilities.ThrowInternalError("Unhandled intrinsic task type {0}", taskInstance.GetType().GetTypeInfo().BaseType);
LoadedType.cs (1)
68t = t.BaseType;
Microsoft.Build.Tasks.Core (1)
system.design\stronglytypedresourcebuilder.cs (1)
548type = type.BaseType;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
526if (!IsEqual(arySym.BaseType(), expType.GetTypeInfo().BaseType))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
45get { return (TypeImpl)this.Type.BaseType; }
Microsoft.CodeAnalysis.Scripting (6)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
338type = type.BaseType?.GetTypeInfo();
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (5)
41type = type.BaseType.GetTypeInfo(); 167if (currentType.BaseType == null) 172currentType = currentType.BaseType.GetTypeInfo(); 228if (currentType.BaseType == null) 233currentType = currentType.BaseType.GetTypeInfo();
Microsoft.CodeAnalysis.UnitTests (2)
Collections\DebuggerAttributes.cs (2)
237for (Type? t = obj.GetType(); t != null; t = t.GetTypeInfo().BaseType) 250for (Type? t = obj.GetType(); t != null; t = t.GetTypeInfo().BaseType)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
ObjectExtensions.cs (1)
44type = type.BaseType;
Microsoft.CSharp (10)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
84Type baseSysType = AssociatedSystemType.BaseType;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (9)
258for (Type parent = type.BaseType; parent != null; parent = parent.BaseType) 871if (type.BaseType != null && 872(type.BaseType.FullName == "System.MulticastDelegate" || 873type.BaseType.FullName == "System.Delegate") && 967if (type.BaseType != null) 970Type t = type.BaseType; 1743for (Type t = type; t.BaseType != null; t = t.BaseType)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
HelperFactory.cs (1)
108type = type.BaseType;
Microsoft.DotNet.XUnitExtensions (1)
Discoverers\ConditionalTestDiscoverer.cs (1)
142return LookupConditionalMember(ti.BaseType, name);
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (1)
526Type? baseType = contextTypeDefinition.BaseType;
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1071baseType = baseType.BaseType!;
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummarizer.cs (1)
47type = type.BaseType;
Microsoft.JSInterop (1)
Infrastructure\TaskGenericsUtil.cs (1)
46taskType = taskType.BaseType
Microsoft.Maui (4)
Animations\Lerp.cs (2)
181 Type? baseType = type?.BaseType; 185 baseType = baseType.BaseType;
HotReload\HotReloadExtensions.cs (2)
52 if (type.BaseType != null) 53 foreach (var foo in getOnHotReloadMethods(type.BaseType, true))
Microsoft.Maui.Controls (8)
BindingExpression.cs (2)
307 if (sourceType.BaseType is Type baseT && GetIndexer(baseT.GetTypeInfo(), indexerName, content) is PropertyInfo p) 388 } while (property == null && (type = type.BaseType?.GetTypeInfo()) != null);
Element\Element_StyleSheets.cs (1)
34 t = t.BaseType;
MergedStyle.cs (1)
163 type = type.BaseType;
Registrar.cs (3)
220 viewType = viewType.BaseType; 277 viewType = viewType.BaseType; 286 viewType = viewType.BaseType;
Style.cs (1)
131 targetType = targetType.BaseType;
Microsoft.Maui.Controls.Xaml (3)
ApplyPropertiesVisitor.cs (3)
252 type = type.BaseType; 514 rootElementType = rootElementType.BaseType; 704 elementType = elementType.BaseType;
Microsoft.ML.Core (6)
ComponentModel\ComponentCatalog.cs (4)
374var baseType = type.BaseType; 762Contracts.CheckParam(sig.BaseType == typeof(MulticastDelegate), nameof(sig), "Must be a delegate type"); 816Contracts.CheckParam(signatureType.BaseType == typeof(MulticastDelegate), nameof(signatureType), "signatureType must be a delegate type"); 1001env.Check(signatureType.BaseType == typeof(MulticastDelegate));
ComponentModel\LoadableClassAttribute.cs (2)
177Contracts.CheckParam(sigType.BaseType == typeof(System.MulticastDelegate), nameof(sigTypes), "LoadableClass signature type must be a delegate type"); 209Contracts.Check(sigType.BaseType == typeof(System.MulticastDelegate), "LoadableClass signature type must be a delegate type");
Microsoft.ML.Data (1)
TrainCatalog.cs (1)
124type = type!.BaseType;
Microsoft.ML.IntegrationTests (2)
Prediction.cs (2)
117var field = model.GetType().BaseType.BaseType.GetField("_disposed", bfIsDisposed);
Microsoft.VisualBasic.Core (9)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (2)
486If objType.BaseType.FullName = "System.__ComObject" Then 686typ = typ.BaseType
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (1)
66commonAncestor = commonAncestor.BaseType
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (2)
1057Dim base As Type = argumentType.BaseType 1067base = base.BaseType
Microsoft\VisualBasic\CompilerServices\Symbols.vb (3)
533Dim classConstraint As Type = genericParameter.BaseType 819curType = curType.BaseType 1035current = current.BaseType
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
2045typ = typ.BaseType
MSBuild (1)
LoadedType.cs (1)
68t = t.BaseType;
PresentationBuildTasks (5)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
1918baseType = baseType.BaseType; 3424baseType = baseType.BaseType; 5718baseType = baseType.BaseType;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
2987typeInformationCacheData = new TypeInformationCacheData(type.BaseType)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
301currentType = currentType.BaseType; // object.BaseType is null, used as terminating condition for the while() loop.
PresentationCore (5)
System\Windows\GlobalEventManager.cs (1)
298ownerType = includeSupers?ownerType.BaseType : null;
System\Windows\Input\Command\CommandManager.cs (3)
333classType = classType.BaseType; 379classType = classType.BaseType; 589classType = classType.BaseType;
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1125type = type.BaseType;
PresentationFramework (11)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
221selectionType = selectionType.BaseType;
MS\Internal\LayoutDump.cs (2)
271t = t.BaseType; 320t = t.BaseType;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12231for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
System\Windows\Documents\TextStore.cs (1)
4825for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
System\Windows\FrameworkElement.cs (1)
1439type = type.BaseType;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1384currentType = currentType.BaseType;
System\Windows\Markup\RoutedEventConverter.cs (1)
115currentType = currentType.BaseType;
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
48currentType = currentType.BaseType;
System\Windows\Markup\XamlTypeMapper.cs (1)
2987typeInformationCacheData = new TypeInformationCacheData(type.BaseType)
System\Windows\PropertyPath.cs (1)
675for (result = null; result == null && ownerType != null; ownerType = ownerType.BaseType)
System.ComponentModel.Composition (11)
Microsoft\Internal\ReflectionServices.cs (3)
133Type? baseType = type.BaseType; 157Type? baseType = type.BaseType; 188type = type.BaseType;
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (5)
379Type? currentType = type.BaseType; 395currentType = currentType.BaseType; 454if (type.BaseType != null) 456Type? baseType = type.BaseType; 467baseType = baseType.BaseType;
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
208var baseType = closedGenericPartType.BaseType; 212baseType = baseType.BaseType;
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
105return IsGenericDescendentOf(type.BaseType, baseGenericTypeDefinition);
System.ComponentModel.TypeConverter (21)
System\ComponentModel\ComponentResourceManager.cs (1)
195t = t.BaseType;
System\ComponentModel\LicenseManager.cs (1)
315Type? baseType = type.BaseType;
System\ComponentModel\ReflectEventDescriptor.cs (5)
271currentReflectType = currentReflectType.BaseType!; 292currentReflectType = currentReflectType.BaseType!; 328Type? start = _componentClass.BaseType; 393currentReflectType = currentReflectType.BaseType; 415currentReflectType = currentReflectType.BaseType;
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
424for (Type? t = _componentClass.BaseType; t != null && t != typeof(object); t = t.BaseType) 796currentReflectType = currentReflectType.BaseType; 828currentReflectType = currentReflectType.BaseType;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
1472baseType = baseType.BaseType; 1596Type? baseType = callingType.BaseType; 1605baseType = baseType.BaseType;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (4)
90Type? baseType = _type.BaseType; 95baseType = baseType.BaseType; 455baseType = baseType.BaseType; 490baseType = baseType.BaseType;
System\ComponentModel\TypeDescriptor.cs (3)
386Type? baseType = type.BaseType; 1321return searchType.BaseType; 1855target.Provider = new DelegatingTypeDescriptionProvider(keyType.BaseType!);
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (3)
359if (derivedType.BaseType == null) 362if (derivedType.BaseType == baseType.AsType()) 372return IsGenericDescendentOf(derivedType.BaseType.GetTypeInfo(), baseType);
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
220b = b.BaseType?.GetTypeInfo();
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeUtils.cs (2)
877type = type.BaseType; 906type = type.BaseType!;
System.Linq.Queryable (1)
System\Linq\TypeHelper.cs (1)
34type = type.BaseType!;
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (2)
47thisType = thisType.BaseType!; 82type = type.BaseType!;
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
1123currentType = currentType.BaseType;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3097if (ret.BaseType == null) 3103ret = ret.BaseType;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
151Type? typeBldrBase = _genericType.BaseType;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
548Type? baseType = contextTypeDefinition.BaseType;
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
58public override Type? BaseType => typeImpl.BaseType;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (3)
33underlyingType = underlyingType.BaseType; 331p = p.BaseType; 402t = t.BaseType;
src\System\Delegate.CoreCLR.cs (1)
189for (currentType = _target!.GetType(); currentType != null; currentType = currentType.BaseType)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
944p = p.BaseType; 951p = p.BaseType;
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
633Type? baseType = type.BaseType;
System\Runtime\Serialization\CollectionDataContract.cs (1)
1023Type? baseType = type.BaseType;
System\Runtime\Serialization\DataContract.cs (1)
2042type = type.BaseType;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\SerializationEvents.cs (1)
66baseType = baseType.BaseType;
System.Private.Windows.Core.TestUtilities (4)
DebuggerAttributes.cs (2)
204for (Type t = obj.GetType(); t is not null; t = t.GetTypeInfo().BaseType) 217for (Type t = obj.GetType(); t is not null; t = t.GetTypeInfo().BaseType)
TestAccessor.cs (2)
129type = type?.BaseType; 183type = type?.BaseType;
System.Private.Xml (20)
System\Xml\Schema\XmlValueConverter.cs (1)
466derivedType = derivedType.BaseType;
System\Xml\Serialization\CodeGenerator.cs (2)
500Type? currentType = propertyInfo.DeclaringType!.BaseType; 528currentType = currentType.BaseType;
System\Xml\Serialization\Compiler.cs (1)
33Type? baseType = type.BaseType;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (6)
1340Type? currentType = declaringType.BaseType; 1350currentType = currentType.BaseType; 1390var parent = declaringType.BaseType; 1401parent = parent.BaseType; 1417var parent = declaringType.BaseType; 1428parent = parent.BaseType;
System\Xml\Serialization\SoapReflectionImporter.cs (1)
360StructMapping baseMapping = ImportStructLikeMapping((StructModel)_modelScope.GetTypeModel(model.Type.BaseType!, false), limiter);
System\Xml\Serialization\Types.cs (5)
842baseType = type.BaseType; 856baseType = type.BaseType; 868baseType = type.BaseType; 1213currentType = currentType.BaseType!; 1327for (Type? t = type; t != null; t = t.BaseType)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
801TypeModel baseModel = _modelScope.GetTypeModel(model.Type.BaseType!, false); 805throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName));
System\Xml\Serialization\XmlSerializationWriter.cs (2)
1225Type? elementBaseType = elementType.BaseType; 1230elementBaseType = elementBaseType.BaseType;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
39get { return _typeInfo.BaseType; }
System.Reflection.Emit (2)
System\Reflection\Emit\TypeBuilderImpl.cs (2)
1451p = p.BaseType; 1460p = p.BaseType;
System.Reflection.MetadataLoadContext (2)
System\Reflection\DefaultBinder.cs (1)
590currentType = currentType.BaseType;
System\Reflection\TypeLoading\General\Assignability.cs (1)
168Type? baseType = walk.BaseType;
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (1)
68baseType = baseType.BaseType;
System.Runtime.Serialization.Formatters (3)
System\Runtime\Serialization\FormatterServices.cs (2)
45Type? parentType = type.BaseType; 136for (Type t1 = parentType; t1 != objectType; t1 = t1.BaseType!)
System\Runtime\Serialization\SerializationEventsCache.cs (1)
49baseType = baseType.BaseType;
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXml.cs (2)
1136while (expectedType != null && expectedType.BaseType != typeof(AsymmetricAlgorithm)) 1138expectedType = expectedType.BaseType!;
System.Text.Json (8)
src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (2)
66baseTypeToCheck = baseTypeToCheck.BaseType; 331for (Type? current = type; current != null; current = current.BaseType)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (2)
309for (Type? current = type.BaseType; current != null; current = current.BaseType)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (4)
213for (Type? candidate = type.BaseType; BaseType.IsAssignableFrom(candidate); candidate = candidate.BaseType) 267for (Type? candidate = typeInfo.Type.BaseType; candidate != null; candidate = candidate.BaseType)
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
446if (this.TryGetOwnerAs(out MonthCalendar? owner) && owner.GetType().BaseType is Type baseType)
System.Windows.Forms.Design (8)
System\ComponentModel\Design\InheritanceService.cs (1)
221type = type.BaseType!;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2038targetType = targetType.BaseType!;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
181castTo = castTo.BaseType!;
System\Drawing\Design\ToolboxItem.cs (1)
569parentType = parentType.BaseType;
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
715type = type.BaseType!;
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
42CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!;
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
26return manager.GetSerializer<CodeDomSerializer>(typeof(TableLayoutPanel).BaseType)!;
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
47CodeDomSerializer baseSerializer = manager.GetSerializer<CodeDomSerializer>(typeof(ImageList).BaseType)!;
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2704if (type.BaseType != typeof(AccessibleObject) && type.BaseType != typeof(ComboBox.ChildAccessibleObject))
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
301currentType = currentType.BaseType; // object.BaseType is null, used as terminating condition for the while() loop.
System\Windows\Markup\StaticExtension.cs (2)
130currentType = currentType.BaseType; 144currentType = currentType.BaseType;
System\Xaml\RefOnly\LooseTypeExtensions.cs (3)
111for (Type type = t; type is not null; type = type.BaseType) 139for(Type baseType = t1.BaseType; baseType is not null; baseType = baseType.BaseType)
System\Xaml\XamlType.cs (2)
756if (underlyingType.BaseType is not null) 758return SchemaContext.GetXamlType(underlyingType.BaseType);