60 references to GetField
Aspire.Hosting.RemoteHost (2)
AtsCapabilityScanner.cs (2)
105Documentation = GetXmlDocumentation(enumType.GetField(value)) 589Documentation = GetXmlDocumentation(enumType.GetField(value))
Aspire.Hosting.RemoteHost.Tests (1)
AttributeDataReaderTests.cs (1)
349[exportAttributeType.GetField(nameof(AspireExportAttribute.Description))!],
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
285FieldInfo specifiedField = memberInfo.DeclaringType.GetField(memberInfo.Name + "Specified");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
983var fieldInfo = TypeOfDBNull.GetField("Value");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
211_ilg.LoadMember(Globals.TypeOfDBNull.GetField("Value"));
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
114/// <item><see cref="System.Type.GetField(string)"/></item>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
114/// <item><see cref="System.Type.GetField(string)"/></item>
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
185.Select(name => underlyingType.GetField(name)!)
Microsoft.CSharp (8)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComBinderHelpers.cs (1)
84curArgument.LimitType.GetField("Value")
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (6)
205typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.rgdispidNamedArgs)) 415typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.rgvarg)) 432typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.cArgs)) 448typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.cNamedArgs)) 465typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.rgdispidNamedArgs)) 483typeof(ComTypes.DISPPARAMS).GetField(nameof(ComTypes.DISPPARAMS.cNamedArgs))
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
219Delegate target = (Delegate)site.GetType().GetField("Target").GetValue(site);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (2)
33private static readonly FieldInfo FactoriesField = typeof(ILEmitResolverBuilderRuntimeContext).GetField(nameof(ILEmitResolverBuilderRuntimeContext.Factories))!; 34private static readonly FieldInfo ConstantsField = typeof(ILEmitResolverBuilderRuntimeContext).GetField(nameof(ILEmitResolverBuilderRuntimeContext.Constants))!;
Microsoft.ML.AutoML (1)
TrainerExtensions\TrainerExtensionUtil.cs (1)
264var fi = obj.GetType().GetField(param.Name);
Microsoft.ML.Core (2)
Data\ServerChannel.cs (1)
186var field = factory.GetType().GetField("Port");
Utilities\Utils.cs (1)
1252FieldInfo field = type.GetField(name);
Microsoft.ML.Data (3)
DataView\InternalSchemaDefinition.cs (1)
233memberInfo = userType.GetField(col.MemberName);
DataView\TypedCursor.cs (1)
286memberInfo = userType.GetField(col.MemberName);
EntryPoints\EntryPointNode.cs (1)
544var inputColName = inputInstance.GetType().GetField(colField).GetValue(inputInstance);
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
365var values = Enum.GetNames(type).Where(n => type.GetField(n).GetCustomAttribute<HideEnumValueAttribute>() == null);
Microsoft.ML.Tests (1)
CollectionsDataViewTest.cs (1)
187if ((fi = field.FieldType.GetField("MinValue")) != null)
Microsoft.NET.Sdk.Publish.Tasks (1)
MsDeploy\DynamicAssembly.cs (1)
69FieldInfo? enumItem = enumType?.GetField(enumValue);
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (3)
1394il.Emit(OpCodes.Ldfld, CallSiteType.GetField("Target")) 1461CType(c.GetType().GetField("Target").GetValue(c), System.Delegate) 1488CType(c.GetType().GetField("Target").GetValue(c), System.Delegate)
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
25return (Guid)type.GetField("PIID").GetValue(null);
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
83targetField = callsiteType.GetField("Target"); 103targetField = callsiteType.GetField("Target");
System.ComponentModel.TypeConverter (2)
System\ComponentModel\EnumConverter.cs (1)
164FieldInfo? GetEnumField(string name) => EnumType.GetField(name);
System\Drawing\ColorConverter.cs (1)
103member = typeof(Color).GetField("Empty");
System.Linq.Expressions (12)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (8)
18public static FieldInfo Decimal_One => field ??= typeof(decimal).GetField(nameof(decimal.One))!; 19public static FieldInfo Decimal_MinusOne => field ??= typeof(decimal).GetField(nameof(decimal.MinusOne))!; 20public static FieldInfo Decimal_MinValue => field ??= typeof(decimal).GetField(nameof(decimal.MinValue))!; 21public static FieldInfo Decimal_MaxValue => field ??= typeof(decimal).GetField(nameof(decimal.MaxValue))!; 22public static FieldInfo Decimal_Zero => field ??= typeof(decimal).GetField(nameof(decimal.Zero))!; 23public static FieldInfo DateTime_MinValue => field ??= typeof(DateTime).GetField(nameof(DateTime.MinValue))!; 46public static FieldInfo Closure_Constants => field ??= typeof(Closure).GetField(nameof(Closure.Constants))!; 47public static FieldInfo Closure_Locals => field ??= typeof(Closure).GetField(nameof(Closure.Locals))!;
System\Linq\Expressions\Compiler\CompilerScope.Storage.cs (2)
116_boxValueField = boxType.GetField("Value")!; 168_boxValueField = boxType.GetField("Value")!;
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
16private static readonly FieldInfo s_callSiteTargetField = typeof(CallSite<>).GetField("Target")!;
System\Runtime\CompilerServices\CallSite.cs (1)
388Expression target = Expression.Field(@this, typeof(CallSite<T>).GetField(nameof(Target))!);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (1)
62return type.GetField(name);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
208_ilg.LoadMember(Globals.TypeOfDBNull.GetField("Value")!);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (1)
288private static FieldInfo GetDBNullValueField() => typeof(DBNull).GetField("Value")!;
System.Private.Xml (2)
System\Xml\Serialization\Models.cs (1)
303FieldInfo? specifiedField = memberInfo.DeclaringType.GetField($"{memberInfo.Name}Specified");
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
115FieldInfo? seqEmpty = sequenceType.GetField("Empty");
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
103return type.GetField(name);
System.Speech (2)
Recognition\Grammar.cs (2)
159if (typeTarget.GetField("__cultureId") != null) 716if (typeTarget.GetField("__cultureId") != null)
System.Windows.Forms (3)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
128if (type.GetField(fieldName) is { } field && field.IsStatic)
System\Windows\Forms\FeatureSupport.cs (2)
36object? featureId = c?.GetField(featureConstName)?.GetValue(null); 60object? featureId = c?.GetField(featureConstName)?.GetValue(null);