7 overrides of FieldType
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
68public override Type FieldType => _field.FieldType;
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
86public override Type FieldType => m_fieldType;
src\System\Reflection\MdFieldInfo.cs (1)
109public override Type FieldType
src\System\Reflection\RtFieldInfo.cs (1)
124public override Type FieldType
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
34public override Type FieldType
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Fields\RoField.cs (1)
85public sealed override Type FieldType
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
45public override Type FieldType => m_field.FieldType;
193 references to FieldType
dotnet-svcutil-lib (16)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
779memberType = fieldInfo.FieldType; 816memberType = fieldInfo.FieldType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (5)
206TypeDesc typeDesc = ModelScope.TypeScope.GetTypeDesc(fieldInfo.FieldType, fieldInfo, true, false); 210CheckSupportedMember(typeDesc, fieldInfo, fieldInfo.FieldType); 211return new FieldModel(fieldInfo, fieldInfo.FieldType, typeDesc); 288if (specifiedField.FieldType != typeof(bool)) 290throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
175((FieldInfo)MemberInfo).FieldType : ((PropertyInfo)MemberInfo).PropertyType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
577Type memType = memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
1088field.FieldType != Globals.TypeOfObject; // Don't really know how to serialize plain System.Object instance;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
692memberType = fieldInfo.FieldType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2291return (field.IsAssembly || field.IsFamilyOrAssembly) && IsTypeVisible(field.FieldType);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataMember.cs (1)
262return field.FieldType;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (2)
351field.FieldType != Globals.TypeOfObject; // Don't really know how to serialize plain System.Object instance 409fieldType = FieldFind.FieldType;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1365memberType = ((FieldInfo)memberInfo).FieldType;
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentOptions.cs (1)
26.Where(f => f.FieldType == typeof(TOptions))
Microsoft.AspNetCore.Http.Tests (7)
DefaultHttpContextTests.cs (7)
340f.FieldType.GetTypeInfo().IsGenericType && 341f.FieldType.GetGenericTypeDefinition() == typeof(FeatureReferences<>)); 344Activator.CreateInstance(field.FieldType) : 345Activator.CreateInstance(field.FieldType, features); 373.Where(f => f.FieldType.GetTypeInfo().IsInterface && f.GetCustomAttribute<CompilerGeneratedAttribute>() == null); 377if (field.FieldType == typeof(IFeatureCollection)) 384Assert.Same(features[field.FieldType], v);
Microsoft.CodeAnalysis (1)
InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SyntaxTreeRootTests.cs (1)
81var syntaxTreeField = typeof(CSharpSyntaxNode).GetFields(BindingFlags.NonPublic | BindingFlags.Instance).Single(f => f.FieldType == typeof(SyntaxTree));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
250Assert.Equal(fieldType, field.FieldType);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeActions\CodeChangeProviderMetadataTests.cs (1)
155.Where(field => field.FieldType == typeof(string))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Debugger\Engine\DkmClrValue.cs (1)
310DkmClrType.Create(appDomain, (TypeImpl)((fieldValue == null) ? field.FieldType : fieldValue.GetType())),
Debugger\MemberInfo\FieldInfoImpl.cs (1)
49get { return (TypeImpl)this.Field.FieldType; }
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorPredefinedProviderNameTests.cs (1)
52.Where(field => field.FieldType == typeof(string))
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\EmbeddedLanguageCommentOptions.cs (1)
25.Where(f => f.FieldType == typeof(TOptions))
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.Scripting (1)
ScriptVariable.cs (1)
39public Type Type => _field.FieldType;
Microsoft.CodeAnalysis.Test.Utilities (2)
Platform\Custom\MetadataSignatureHelper.cs (1)
634AppendType(field.FieldType, sb);
TestHelpers.cs (1)
43return t.GetFields(BindingFlags.Public | BindingFlags.Static).Any(f => type.IsAssignableFrom(f.FieldType));
Microsoft.CodeAnalysis.Threading.Package (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.UnitTests (2)
Analyzers\DictionaryAnalyzerConfigOptionsTests.cs (1)
26typeof(DictionaryAnalyzerConfigOptions).GetField("Options", BindingFlags.Instance | BindingFlags.NonPublic)?.FieldType);
PEWriter\InstructionOperandTypesTests.cs (1)
29if (fi.FieldType != typeOfOpCode)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
413var additionalTextsMember = stateMember.FieldType.GetField("AdditionalTexts", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
81var convertedDelegate = Delegate.CreateDelegate(targetHandlerProperty.FieldType, handler.Target, handler.Method);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestInfo.cs (1)
51if (typeof(IOption2).IsAssignableFrom(field.FieldType))
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Remote\ServiceDescriptorTests.cs (1)
101AddTypeRecursive(field.FieldType, type);
WorkspaceServiceTests\ReferenceCountedDisposableTests.cs (1)
183Assert.True(field.FieldType.IsClass);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
1086field.SetType(GetCTypeFromType(fieldInfo.FieldType));
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
164if (fi != null && fi.FieldType == typeof(bool) && fi.IsStatic)
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
164if (fi != null && fi.FieldType == typeof(bool) && fi.IsStatic)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingTagNamesTest.cs (1)
27.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\ApplicationEnricherTagTests.cs (1)
28.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Enrichment\ProcessEnricherDimensionsTests.cs (1)
27.Where(f => f.IsLiteral && f.FieldType == typeof(string))
Microsoft.Maui.Controls (2)
BindablePropertyConverter.cs (1)
101 if (bpinfo == null || bpinfo.FieldType != typeof(BindableProperty))
BindingExpression.cs (1)
407 if (bindablePropertyField != null && bindablePropertyField.FieldType == typeof(BindableProperty) && sourceType.ImplementedInterfaces.Contains(typeof(IElementController)))
Microsoft.Maui.Resizetizer (1)
ColorTable.cs (1)
38 if (field.FieldType == typeof(SKColor))
Microsoft.ML.AutoML (6)
TrainerExtensions\TrainerExtensionUtil.cs (6)
265var propType = Nullable.GetUnderlyingType(fi.FieldType) ?? fi.FieldType; 277if (Nullable.GetUnderlyingType(fi.FieldType) != null) 279else if (fi.FieldType.IsEnum) 282var enumDict = fi.FieldType.GetEnumValues().Cast<int>() 283.ToDictionary(v => Enum.GetName(fi.FieldType, v), v => v);
Microsoft.ML.Core (10)
CommandLine\CmdParser.cs (8)
658_host.ComponentCatalog.TryFindComponentCaseInsensitive(arg.Field.FieldType, value, out component)) 1315if (!field.IsStatic || field.FieldType != type) 1445if (field.FieldType.IsArray) 1448ItemType = field.FieldType.GetElementType(); 1456ItemValueType = ItemType = field.FieldType; 2231if (!field.IsStatic || field.FieldType != type) 2265get { return IsComponentFactory && !Field.FieldType.IsArray; } 2270get { return IsComponentFactory && Field.FieldType.IsArray; }
Data\ServerChannel.cs (1)
187if (field?.FieldType != typeof(int))
EntryPoints\EntryPointUtils.cs (1)
64var fieldType = fieldInfo.FieldType;
Microsoft.ML.Data (22)
Data\SchemaDefinition.cs (2)
183ectx.Check(cursorChannelAttrFieldInfo.FieldType == typeof(IChannel), 357if (fieldInfo.FieldType == typeof(IChannel))
DataLoadSave\Database\DatabaseLoader.cs (3)
149if (!InternalDataKindExtensions.TryGetDataKind(field.FieldType.IsArray ? field.FieldType.GetElementType() : field.FieldType, out dk))
DataLoadSave\Text\TextLoader.cs (3)
1612if (!InternalDataKindExtensions.TryGetDataKind(field.FieldType.IsArray ? field.FieldType.GetElementType() : field.FieldType, out dk))
DataView\InternalSchemaDefinition.cs (3)
32public Type FieldOrPropertyType => (MemberInfo is FieldInfo) ? (MemberInfo as FieldInfo).FieldType : (MemberInfo as PropertyInfo).PropertyType; 150GetVectorAndItemType(fieldInfo.Name, fieldInfo.FieldType, fieldInfo.GetCustomAttributes(), out isVector, out itemType); 245if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).FieldType == typeof(IChannel)) ||
DataView\TypedCursor.cs (2)
234InternalSchemaDefinition.GetMappedType(fieldInfo.FieldType, out actualType, out isVector); 291if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).FieldType == typeof(IChannel)) ||
EntryPoints\InputBuilder.cs (5)
127var type = _fields[fi].FieldType; 188var csValue = ParseJsonValue(_ectx, field.FieldType, _attrs[index], value, _catalog); 193csValue = GetFieldAssignableValue(_ectx, field.FieldType, csValue); 211var csValue = GetFieldAssignableValue(_ectx, field.FieldType, value); 707var type = fi?.FieldType;
Utils\ApiUtils.cs (4)
73Type fieldType = fieldInfo.FieldType; 101il.Emit(assignmentOpCode, fieldInfo.FieldType); 141Type fieldType = fieldInfo.FieldType; 167il.Emit(assignmentOpCode, fieldInfo.FieldType);
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
53if (field.FieldType != type)
Microsoft.ML.EntryPoints (11)
JsonUtils\JsonManifestUtils.cs (11)
174jo[FieldNames.Type] = BuildTypeToken(ectx, fieldInfo, fieldInfo.FieldType, catalog); 181jo[FieldNames.IsNullable] = fieldInfo.FieldType.IsGenericType && (fieldInfo.FieldType.GetGenericTypeDefinition() == typeof(Nullable<>)); 184var dataType = TlcModule.GetDataType(fieldInfo.FieldType); 186jo[FieldNames.Default] = BuildValueToken(ectx, defaultValue, fieldInfo.FieldType, catalog); 188if (fieldInfo.FieldType.IsGenericType && 189fieldInfo.FieldType.GetGenericTypeDefinition() == typeof(Optional<>)) 201if (!TlcModule.IsNumericKind(TlcModule.GetDataType(fieldInfo.FieldType))) 204if (!rangeAttr.Type.Equals(fieldInfo.FieldType)) 299jo[FieldNames.Type] = BuildTypeToken(ectx, fieldInfo, fieldInfo.FieldType, catalog); 509jSettings[attr.Name ?? fieldInfo.Name] = BuildValueToken(ectx, actualValue, fieldInfo.FieldType, catalog);
Microsoft.ML.LightGbm (6)
LightGbmTrainerBase.cs (6)
425if (field.FieldType.Name.StartsWith("Nullable")) 427if (field.FieldType.GenericTypeArguments[0] == typeof(double)) 431else if (field.FieldType.GenericTypeArguments[0] == typeof(int)) 435else if (field.FieldType.GenericTypeArguments[0] == typeof(float)) 441else if (field.FieldType.Name.StartsWith("Boolean")) 449field.SetValue(LightGbmTrainerOptions, Convert.ChangeType(modelParameters[lightGbmName], field.FieldType));
Microsoft.ML.SearchSpace (2)
SearchSpace.cs (2)
213CheckOptionType(attributes.First(), field.Name, field.FieldType); 229NestOptionAttribute nest => GetSearchSpaceOptionFromType(field.FieldType),
Microsoft.ML.Tests (3)
CollectionsDataViewTest.cs (3)
60if (field.FieldType.IsArray) 67if (!CompareObjectValues(xvalue, yvalue, field.FieldType)) 187if ((fi = field.FieldType.GetField("MinValue")) != null)
Microsoft.VisualBasic.Core (7)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (1)
330FieldValue = ObjectType.CTypeHelper(args(0), fi.FieldType)
Microsoft\VisualBasic\CompilerServices\StructUtils.vb (1)
121FieldType = field_info.FieldType
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
900returnType = DirectCast(members(memberIndex), FieldInfo).FieldType 1140field.SetValue(_instance, Conversions.ChangeType(value, field.FieldType))
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
730rtype = field.FieldType
Microsoft\VisualBasic\CompilerServices\VB6File.vb (2)
110Dim FieldType As System.Type = field_info.FieldType 234FieldType = field_info.FieldType
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1911if (fiEvent == null || fiEvent.FieldType != KnownTypes.Types[(int)KnownElements.RoutedEvent])
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
77var args = type.GetFields(BindingFlags.Instance | BindingFlags.Public).Select(fi => GetSignature(fi.FieldType));
System\Windows\Standard\ErrorCodes.cs (2)
314if (publicStaticField.FieldType == typeof(HRESULT)) 329if (publicStaticField.FieldType == typeof(Win32Error))
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
45return ((FieldInfo)member).FieldType;
System\ComponentModel\Composition\ReflectionModel\ReflectionField.cs (1)
47get { return UndelyingField.FieldType; }
System.Data.Common (1)
System\Data\Common\DbProviderFactories.cs (1)
181if (!providerInstance.FieldType.IsSubclassOf(typeof(DbProviderFactory)))
System.Linq.Expressions (11)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
853EmitConstant(fi.GetRawConstantValue(), fi.FieldType); 1105return member is FieldInfo fi ? fi.FieldType : (member as PropertyInfo)!.PropertyType;
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2452_instructions.EmitLoad(fi.GetValue(obj: null), fi.FieldType); 2463_instructions.EmitLoad(fi.GetValue(obj: null), fi.FieldType); 2762if (fi != null) return fi.FieldType;
System\Linq\Expressions\MemberAssignment.cs (1)
109memberType = fi.FieldType;
System\Linq\Expressions\MemberExpression.cs (1)
100public sealed override Type Type => _field.FieldType;
System\Linq\Expressions\MemberListBinding.cs (2)
66/// <paramref name="member"/> does not represent a field or property.-or-The <see cref="FieldInfo.FieldType"/> or <see cref="PropertyInfo.PropertyType"/> of the field or property that <paramref name="member"/> represents does not implement <see cref="Collections.IEnumerable"/>.</exception> 79/// <paramref name="member"/> does not represent a field or property.-or-The <see cref="FieldInfo.FieldType"/> or <see cref="PropertyInfo.PropertyType"/> of the field or property that <paramref name="member"/> represents does not implement <see cref="Collections.IEnumerable"/>.</exception>
System\Linq\Expressions\MemberMemberBinding.cs (1)
145memberType = fi.FieldType;
System\Linq\Expressions\NewExpression.cs (1)
321memberType = field.FieldType;
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
471Type pCls = candidates[i].FieldType;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3469Type staticFieldType = staticField.FieldType; 3490manifest.ManifestError(SR.Format(SR.EventSource_EnumKindMismatch, staticField.FieldType.Name, providerEnumKind));
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (2)
22FieldInfo field => field.FieldType, 64fi.FieldType :
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldOnTypeBuilderInstantiation.cs (1)
68public override Type FieldType => _field.FieldType;
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
157Type cls = fld.FieldType;
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
265NullabilityInfo nullability = GetNullabilityInfo(fieldInfo, fieldInfo.FieldType, parser); 416metaType = field.FieldType;
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
471if (selFld.FieldType.IsArray || ReferenceEquals(selFld.FieldType, typeof(Array)))
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
617return fields[0].FieldType;
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
44RuntimeType fieldType = (RuntimeType)field.FieldType;
src\System\Reflection\Emit\CustomAttributeBuilder.cs (1)
192Type fldType = namedField.FieldType;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
259return m_underlyingField.FieldType;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
1238sigHelp.AddArgument(field.FieldType, field.GetRequiredCustomModifiers(), field.GetOptionalCustomModifiers());
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
287new CustomAttributeType((RuntimeType)fi.FieldType));
src\System\Reflection\RuntimeFieldInfo.cs (1)
55return FieldType.FormatTypeName() + " " + Name;
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\CodeGenerator.cs (1)
576memberType = fieldInfo.FieldType;
System\Runtime\Serialization\DataContract.cs (1)
2214return (field.IsAssembly || field.IsFamilyOrAssembly) && IsTypeVisible(field.FieldType);
System\Runtime\Serialization\DataMember.cs (1)
174_memberType = fieldInfo.FieldType;
System.Private.Xml (12)
System\Xml\Serialization\CodeGenerator.cs (2)
540memberType = fieldInfo.FieldType; 573memberType = fieldInfo.FieldType;
System\Xml\Serialization\Models.cs (5)
222TypeDesc typeDesc = ModelScope.TypeScope.GetTypeDesc(fieldInfo.FieldType, fieldInfo, true, false); 226CheckSupportedMember(typeDesc, fieldInfo, fieldInfo.FieldType); 227return new FieldModel(fieldInfo, fieldInfo.FieldType, typeDesc); 306if (specifiedField.FieldType != typeof(bool)) 308throw new InvalidOperationException(SR.Format(SR.XmlInvalidSpecifiedType, specifiedField.Name, specifiedField.FieldType.FullName, typeof(bool).FullName));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
639memberType = fieldInfo.FieldType; 1056memberType = fieldInfo.FieldType;
System\Xml\Serialization\SourceInfo.cs (1)
177((FieldInfo)MemberInfo).FieldType : ((PropertyInfo)MemberInfo).PropertyType;
System\Xml\Serialization\XmlSerializationILGen.cs (1)
586Type memType = (memInfo is FieldInfo) ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
2793ilg.ConvertValue(stackType, memInfo is FieldInfo ? ((FieldInfo)memInfo).FieldType : ((PropertyInfo)memInfo).PropertyType);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingFieldInfo.cs (1)
36get { return UnderlyingField.FieldType; }
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
743Type fieldType = ((FieldInfo)GetOriginalMemberIfConstructedType(field)).FieldType;
System.Runtime.Serialization.Formatters (5)
System\Runtime\Serialization\ObjectManager.cs (3)
319FieldInfo? nullableValueField = GetNullableValueField(parentField.FieldType); 1064if (idOfContainingObj != 0 && ((field != null && field.FieldType.IsValueType) || arrayIndex != null)) 1211if (idOfContainer != 0 && ((field != null && field.FieldType.IsValueType) || arrayIndex != null))
System\Runtime\Serialization\SerializationFieldInfo.cs (1)
45public override Type FieldType => m_field.FieldType;
System\Runtime\Serialization\ValueTypeFixupInfo.cs (1)
56if (member.FieldType.IsValueType && containerID == 0)
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
188typeToConvert: fieldInfo.FieldType,
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (2)
322Type declaredFieldType = fieldInfo.FieldType; 356Type declaredFieldType = fieldInfo.FieldType;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\InheritanceService.cs (3)
94Type reflectionType = GetReflectionTypeFromTypeHelper(field.FieldType); 126Debug.Assert(fieldProp.PropertyType == field.FieldType, "Field declared with AccessedThroughPropertyAttribute is associated with a property with a different return type."); 127if (fieldProp is not null && fieldProp.PropertyType == field.FieldType)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
568Type fieldType = f.FieldType; 2021expressionType = fieldInfo.FieldType;
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
41memberType = field.FieldType;
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
68if (fi == null || fi.FieldType != typeof(ClientSideProviderDescription[]))