10 overrides of BaseType
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
370public override Type BaseType => typeof(Array);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
140public override Type? BaseType
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
97public override Type? BaseType => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
89public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
58public override Type? BaseType => typeImpl.BaseType;
System\RuntimeType.NativeAot.cs (1)
329public override Type? BaseType
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
108public override Type BaseType
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
37public override Type? BaseType
System.Reflection.Emit (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
370public override Type BaseType => typeof(Array);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
155public sealed override Type? BaseType => GetRoBaseType();
286 references to BaseType
Aspire.Hosting.CodeGeneration.TypeScript.Tests (5)
AtsTypeScriptCodeGeneratorTests.cs (5)
368if (type.BaseType != null && type.BaseType.FullName != "System.Object") 370CollectAllInterfacesRecursive(type.BaseType, collected); 422var currentType = testRedisType.BaseType; 426currentType = currentType.BaseType;
Aspire.Hosting.Radius (1)
ResourceMapping\ResourceTypeMapper.cs (1)
202type = type.BaseType;
Aspire.Hosting.RemoteHost (5)
AtsCapabilityScanner.cs (5)
1952for (var baseType = contextType.BaseType; baseType is not null; baseType = baseType.BaseType) 3010var currentBase = type.BaseType; 3026currentBase = currentBase.BaseType; 3039var baseType = type.BaseType;
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
265var baseType = type.BaseType; 274baseType = baseType.BaseType;
Aspire.TypeSystem (1)
HostingTypeHelpers.cs (1)
111return IsAssignableToType(type.BaseType, fullName);
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;
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
193/// <see cref="System.Type.BaseType"/>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
193/// <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\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\Binding\ReflectionServiceInvokerResolver.cs (1)
80currentType = currentType.BaseType;
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\BindMethodFinder.cs (5)
63} while ((currentServiceType = currentServiceType.BaseType) != null); 95var baseType = serviceImplementation.BaseType; 98while (baseType?.BaseType?.BaseType != null) 100baseType = baseType.BaseType;
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Http.Extensions (2)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
IdentityEntityFrameworkBuilderExtensions.cs (1)
105type = type.BaseType;
Microsoft.AspNetCore.JsonPatch (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\aspnetcore\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\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TemplateRenderer.cs (1)
205type = type.BaseType;
Microsoft.AspNetCore.OpenApi (2)
Extensions\TypeExtensions.cs (1)
35modelType = modelType.BaseType;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.Routing.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
468currentType = currentType.BaseType;
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\aspnetcore\src\SignalR\common\Shared\ReflectionHelper.cs (1)
41nullableType = nullableType.BaseType;
Microsoft.AspNetCore.SignalR.Core (4)
Internal\TypeBaseEnumerationExtensions.cs (1)
14current = current.BaseType;
src\aspnetcore\src\Shared\ClosedGenericMatcher\ClosedGenericMatcher.cs (1)
96var baseType = queryType?.BaseType;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
430currentType = currentType.BaseType;
src\aspnetcore\src\SignalR\common\Shared\ReflectionHelper.cs (1)
41nullableType = nullableType.BaseType;
Microsoft.Build (3)
BackEnd\Components\Logging\ProjectTelemetry.cs (2)
96Type? baseType = taskType.BaseType; 116baseType = baseType.BaseType;
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (1)
72_ => InternalError.Throw<IntrinsicTask>($"Unhandled intrinsic task type {taskInstance.GetType().BaseType}"),
Microsoft.Build.Framework (1)
Loader\LoadedType.cs (1)
102t = t.BaseType;
Microsoft.Build.Tasks.Core (1)
system.design\stronglytypedresourcebuilder.cs (1)
577type = type.BaseType;
Microsoft.CodeAnalysis.Scripting (6)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
336type = type.BaseType?.GetTypeInfo();
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (5)
40type = type.BaseType.GetTypeInfo(); 166if (currentType.BaseType == null) 171currentType = currentType.BaseType.GetTypeInfo(); 227if (currentType.BaseType == null) 232currentType = currentType.BaseType.GetTypeInfo();
Microsoft.CSharp (10)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
84Type baseSysType = AssociatedSystemType.BaseType;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (9)
264for (Type parent = type.BaseType; parent != null; parent = parent.BaseType) 891if (type.BaseType != null && 892(type.BaseType.FullName == "System.MulticastDelegate" || 893type.BaseType.FullName == "System.Delegate") && 987if (type.BaseType != null) 990Type t = type.BaseType; 1777for (Type t = type; t.BaseType != null; t = t.BaseType)
Microsoft.Extensions.AI.Abstractions (3)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (1)
526Type? baseType = contextTypeDefinition.BaseType;
Utilities\AIJsonUtilities.cs (2)
200for (Type? baseType = contentType.BaseType; 202baseType = baseType.BaseType)
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1136baseType = baseType.BaseType!;
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummarizer.cs (1)
47type = type.BaseType;
Microsoft.Extensions.Diagnostics.Testing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
732Type? temp105 = instance.BaseType; 913Type? temp145 = instance.BaseType;
Microsoft.Extensions.VectorData.ConformanceTests (3)
TestSuiteImplementationTests.cs (3)
23.Where(c => c.BaseType != typeof(object) && !c.IsAbstract && (c.IsPublic || c.IsNestedPublic)) 75var t = type.BaseType; 81t = t.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.ML.Maml (2)
HelpCommand.cs (2)
155_env.Assert(signature.BaseType == typeof(MulticastDelegate)); 205_env.Assert(signature.BaseType == typeof(MulticastDelegate));
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 1032current = current.BaseType
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
2045typ = typ.BaseType
PresentationBuildTasks (5)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
1914baseType = baseType.BaseType; 3420baseType = baseType.BaseType; 5713baseType = baseType.BaseType;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
2986typeInformationCacheData = new TypeInformationCacheData(type.BaseType)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
300currentType = currentType.BaseType; // object.BaseType is null, used as terminating condition for the while() loop.
PresentationCore (5)
System\Windows\GlobalEventManager.cs (1)
297ownerType = includeSupers?ownerType.BaseType : null;
System\Windows\Input\Command\CommandManager.cs (3)
332classType = classType.BaseType; 378classType = classType.BaseType; 588classType = classType.BaseType;
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
1121type = type.BaseType;
PresentationFramework (11)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
220selectionType = selectionType.BaseType;
MS\Internal\LayoutDump.cs (2)
270t = t.BaseType; 319t = t.BaseType;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12227for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
System\Windows\Documents\TextStore.cs (1)
4815for (Type t = o.GetType(); !isWPFControl && t != null; t = t.BaseType)
System\Windows\FrameworkElement.cs (1)
1438type = type.BaseType;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
1380currentType = currentType.BaseType;
System\Windows\Markup\RoutedEventConverter.cs (1)
114currentType = currentType.BaseType;
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
47currentType = currentType.BaseType;
System\Windows\Markup\XamlTypeMapper.cs (1)
2986typeInformationCacheData = new TypeInformationCacheData(type.BaseType)
System\Windows\PropertyPath.cs (1)
668for (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)
202var baseType = closedGenericPartType.BaseType; 206baseType = baseType.BaseType;
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
97return IsGenericDescendentOf(type.BaseType, baseGenericTypeDefinition);
System.ComponentModel.TypeConverter (21)
System\ComponentModel\ComponentResourceManager.cs (1)
185t = 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)
1465baseType = baseType.BaseType; 1589Type? baseType = callingType.BaseType; 1598baseType = 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)
395Type? baseType = type.BaseType; 1330return searchType.BaseType; 1864target.Provider = new DelegatingTypeDescriptionProvider(keyType.BaseType!);
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (3)
341if (derivedType.BaseType == null) 344if (derivedType.BaseType == baseType.AsType()) 354return IsGenericDescendentOf(derivedType.BaseType.GetTypeInfo(), baseType);
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
220b = b.BaseType?.GetTypeInfo();
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
77(DirectoryRdnPrefixAttribute[])Attribute.GetCustomAttributes(principalType.BaseType, typeof(DirectoryRdnPrefixAttribute), false);
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
742(DirectoryRdnPrefixAttribute[])Attribute.GetCustomAttributes(principalType.BaseType, typeof(DirectoryRdnPrefixAttribute), false);
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 (18)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
379type = type.BaseType;
Internal\Reflection\Extensions\NonPortable\CustomAttributeInheritanceRules.cs (1)
121Type? baseType = e.BaseType;
Internal\Reflection\Extensions\NonPortable\CustomAttributeInstantiator.cs (2)
98Type? baseType = walk.BaseType; 115Type? baseType = walk.BaseType;
Internal\Reflection\Extensions\NonPortable\CustomAttributeSearcher.cs (2)
71for (Type? type = actualType.BaseType; type != null; type = type.BaseType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
1125currentType = currentType.BaseType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3443if (ret.BaseType == null) 3449ret = ret.BaseType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
150Type? typeBldrBase = _genericType.BaseType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
536Type? baseType = contextTypeDefinition.BaseType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
58public override Type? BaseType => typeImpl.BaseType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (3)
33underlyingType = underlyingType.BaseType; 359p = p.BaseType; 430t = t.BaseType;
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
162Type? baseType = type.BaseType;
System\Reflection\Runtime\General\Assignability.cs (1)
170Type? baseType = walk.BaseType;
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (1)
769for (Type type = this.ToType(); type != null; type = type.BaseType!)
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
635Type? baseType = type.BaseType;
System\Runtime\Serialization\CollectionDataContract.cs (1)
1025Type? baseType = type.BaseType;
System\Runtime\Serialization\DataContract.cs (1)
2067type = type.BaseType;
System.Private.Reflection.Execution (3)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (1)
108if (declaringType.BaseType == typeof(MulticastDelegate))
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
112return _underlyingType.BaseType.Instantiate(_context);
Internal\Reflection\Execution\TypeLoader\TypeCast.cs (1)
369Type baseType = pDerivedType.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)
130type = type?.BaseType; 232type = 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)
1583Type? currentType = declaringType.BaseType; 1593currentType = currentType.BaseType; 1633var parent = declaringType.BaseType; 1644parent = parent.BaseType; 1660var parent = declaringType.BaseType; 1671parent = 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)
905baseType = type.BaseType; 919baseType = type.BaseType; 931baseType = type.BaseType; 1298currentType = currentType.BaseType!; 1412for (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)
1272Type? elementBaseType = elementType.BaseType; 1277elementBaseType = 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)
1426p = p.BaseType; 1435p = p.BaseType;
System.Reflection.MetadataLoadContext (2)
System\Reflection\DefaultBinder.cs (1)
584currentType = 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.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
324else if (typeof(MulticastDelegate).IsAssignableFrom(type.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)
1118while (expectedType != null && expectedType.BaseType != typeof(AsymmetricAlgorithm)) 1120expectedType = expectedType.BaseType!;
System.ServiceModel.Primitives (3)
Extensions\ReflectionExtensions.cs (1)
21return type.GetTypeInfo().BaseType;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
583if (bodyObjectType.BaseType != null && bodyObjectType.BaseType != typeof(object))
System.Text.Json (10)
src\runtime\src\libraries\System.Text.Json\Common\ReflectionExtensions.cs (2)
66baseTypeToCheck = baseTypeToCheck.BaseType; 331for (Type? current = type; current != null; current = current.BaseType)
System\ReflectionExtensions.cs (2)
200for (Type? current = type; current is not null; current = current.BaseType) 528for (Type? current = subType; current is not null; current = current.BaseType)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (2)
333for (Type? current = type.BaseType; current != null; current = current.BaseType)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (4)
235for (Type? candidate = type.BaseType; BaseType.IsAssignableFrom(candidate); candidate = candidate.BaseType) 289for (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)
218type = type.BaseType!;
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2035targetType = 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.Xaml (8)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
300currentType = currentType.BaseType; // object.BaseType is null, used as terminating condition for the while() loop.
System\Windows\Markup\StaticExtension.cs (2)
129currentType = currentType.BaseType; 143currentType = currentType.BaseType;
System\Xaml\RefOnly\LooseTypeExtensions.cs (3)
110for (Type type = t; type is not null; type = type.BaseType) 138for (Type baseType = t1.BaseType; baseType is not null; baseType = baseType.BaseType)
System\Xaml\XamlType.cs (2)
755if (underlyingType.BaseType is not null) 757return SchemaContext.GetXamlType(underlyingType.BaseType);