130 references to GetValue
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
666Assert.Equal(testInfo.ConsumerGroup, consumerGroupProperty.GetValue(settings));
Aspire.Cli.Tests (4)
DotNet\ProcessInvocationOptionsTests.cs (4)
46Equals(property.GetValue(original), property.GetValue(defaults)), 55Assert.Equal(property.GetValue(original), property.GetValue(clone));
Aspire.Confluent.Kafka.Tests (3)
Aspire8MetricsTests.cs (1)
246private static ChannelWriter<string>? GetMetricsChannelWriter(object o) => ReflectionHelpers.MetricsChannelType.Value.GetProperty("Writer")!.GetValue(o) as ChannelWriter<string>;
ConsumerConfigurationTests.cs (1)
265private static ConsumerConfig? GetConsumerConfig(object o) => ReflectionHelpers.ConsumerConnectionFactoryStringKeyStringValueType.Value.GetProperty("Config")!.GetValue(o) as ConsumerConfig;
ProducerConfigurationTests.cs (1)
253private static ProducerConfig? GetProducerConfig(object o) => ReflectionHelpers.ProducerConnectionFactoryStringKeyStringValueType.Value.GetProperty("Config")!.GetValue(o) as ProducerConfig;
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (1)
3360.Select(static p => (AzureLocation)p.GetValue(null)!)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
408.Select(p => (AzureLocation)p.GetValue(null)!)
Aspire.Hosting.Azure.Kubernetes (2)
AksPreviewIngressProfileInjector.cs (2)
166var clusterProps = clusterPropsProp.GetValue(aks) 173var ipInstance = ipProp.GetValue(clusterProps)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
1799var types = typesProperty.GetValue(unionAttr) as Type[];
Aspire.Hosting.RemoteHost (8)
Ats\CapabilityDispatcher.cs (3)
210var value = prop.GetValue(target); 685return resultProperty?.GetValue(task); 989.GetValue(contextObj);
Ats\PolyglotCapabilityInvocationException.cs (4)
221.GetValue(handleObject); 288return value.GetType().GetProperty("Name")?.GetValue(value)?.ToString(); 293var resource = value.GetType().GetProperty("Resource")?.GetValue(value); 362var resource = valueType.GetProperty("Resource")?.GetValue(value);
AtsCapabilityScanner.cs (1)
1239getValue: () => property.GetValue(null),
Aspire.Hosting.Tests (6)
Backchannel\BackchannelContractTests.cs (2)
215: CreateNonDefaultValue(requestType, property, property.GetValue(defaultRequest)); 234var actualValue = property.GetValue(copy);
ResourceNotificationTests.cs (2)
1684property.SetValue(mutated, CreateDifferentValue(property, property.GetValue(snapshot))); 1693property.SetValue(mutated, CreateDifferentValue(property, property.GetValue(snapshot)));
Utils\StringComparersTests.cs (2)
68var comparerValues = comparers.Select(c => (c.Name, Value: (StringComparer)c.GetValue(null)!)).ToList(); 69var comparisonValues = comparisons.Select(c => (c.Name, Value: (StringComparison)c.GetValue(null)!)).ToList();
Aspire.Hosting.Yarp (1)
YarpEnvConfigGenerator.cs (1)
91var value = property.GetValue(obj);
dotnet-format (2)
Analyzers\Extensions.cs (2)
158var notification = notificationProperty.GetValue(option); 159var reportDiagnosticValue = notification?.GetType().GetProperty("Severity")?.GetValue(notification);
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (4)
374if (prop.GetValue(value) != null && propDataContract != null && !TryCheckIfNoCountIDictionary(prop.PropertyType, prop.GetValue(value))) 376if (!TryWritePrimitive(prop.PropertyType, prop.GetValue(value), writer, context)) 380context.SerializeWithoutXsiType(propDataContract, writer, prop.GetValue(value), prop.PropertyType.TypeHandle);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
263public Task Task { get { return (Task)_tcsInfo.TaskProperty.GetValue(_tcsInstance); } }
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (3)
230types.Add((Type)contractTypeProperty.GetValue(contract)); 232System.Collections.IEnumerable operations = (System.Collections.IEnumerable)operationsProperty.GetValue(contract); 240var behaviors = getBehaviorsProperty.GetValue(operation);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
GetDocument.Insider (1)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (1)
194return (IServiceProvider?)servicesProperty?.GetValue(host);
Infrastructure.Tests (1)
PowerShellScripts\SplitTestMatrixByDepsTests.cs (1)
296dict[key] = prop.GetValue(entry)!;
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertyGetter.cs (1)
49_GetterDelegate = property.GetValue;
Microsoft.AspNetCore.Components.Endpoints (2)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertyGetter.cs (1)
49_GetterDelegate = property.GetValue;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Components.Forms (3)
EditContextDataAnnotationsExtensions.cs (1)
248var propertyValue = propertyInfo.GetValue(fieldIdentifier.Model);
FieldIdentifier.cs (1)
296PropertyInfo property => property.GetValue(target),
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
285PropertyInfo property => closure => (TResult)property.GetValue(closure)!,
Microsoft.AspNetCore.Components.Web (1)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
285PropertyInfo property => closure => (TResult)property.GetValue(closure)!,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
60return (ServiceDescriptor?)property.GetValue(null);
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
66personalData.Add(p.Name, p.GetValue(user)?.ToString() ?? "null");
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
66personalData.Add(p.Name, p.GetValue(user)?.ToString() ?? "null");
Microsoft.AspNetCore.InternalTesting (1)
xunit\ConditionalTheoryDiscoverer.cs (1)
58skipReason = property.GetValue(obj) as string;
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Mvc.Testing (1)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (1)
194return (IServiceProvider?)servicesProperty?.GetValue(host);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewDataInfo.cs (2)
33/// It uses <see cref="System.Reflection.PropertyInfo.GetValue(object)"/> on <paramref name="propertyInfo"/> 93_value = PropertyInfo.GetValue(Container);
Microsoft.AspNetCore.Routing (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Routing.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentParameters.cs (1)
81propertyInfo.SetValue(this, propertyInfo.GetValue(parameters));
Microsoft.AspNetCore.TestHost (1)
src\5ff452f563f7a4b9\HostFactoryResolver.cs (1)
194return (IServiceProvider?)servicesProperty?.GetValue(host);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\Node\RarTaskParameters.cs (2)
63object? value = property.Target.GetValue(rar); 149ReflectedPropertyInfo reflectedProperty = new(property, property.GetValue(rar));
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerWrapper.cs (1)
50var response = _responseTaskResultProperty.GetValue(responseTask);
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.cs (1)
332fileName = fileNameProperty?.GetValue(logger) as string ?? logger.Parameters;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcMethodInvoker.cs (1)
55return task.GetType().GetProperty("Result")!.GetValue(task);
Microsoft.DotNet.Build.Tasks.Packaging (1)
Extensions.cs (1)
181var list = (List<TItem>)property.GetValue(target) ?? new List<TItem>();
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
93switch (property.GetValue(AIJsonSchemaCreateOptions.Default))
Microsoft.Extensions.AI.Tests (1)
ChatRouting\OrderedFailoverChatClientTests.cs (1)
374return (int)requestStates.GetType().GetProperty("Count")!.GetValue(requestStates)!;
Microsoft.Extensions.AmbientMetadata.Build.Tests (1)
BuildMetadataTests.cs (1)
26var properties = obj.GetType().GetProperties().Select(f => f.GetValue(obj)).ToArray();
Microsoft.Extensions.Compliance.Redaction (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
287property.SetValue(instance, property.GetValue(instance)); 303initialValueProvider: () => property.GetValue(instance),
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Diagnostics.Probes (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Http.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Http.Resilience.Tests (1)
Helpers\OptionsUtilities.cs (1)
57propertyGroup => propertyGroup.Last().GetValue(options)!);
Microsoft.Extensions.Options.DataAnnotations (2)
DataAnnotationValidateOptions.Async.cs (1)
119object? value = propertyInfo.GetValue(options);
DataAnnotationValidateOptions.cs (1)
111object? value = propertyInfo!.GetValue(options);
Microsoft.Extensions.Telemetry (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.VectorData.Abstractions (2)
ProviderServices\Filter\FilterTranslatorBase.cs (1)
320evaluatedValue = propertyInfo.GetValue(baseValue);
ProviderServices\PropertyModel.cs (1)
106_getter = propertyInfo.GetValue;
Microsoft.Extensions.VectorData.ConformanceTests (2)
TypeTests\DataTypeTests.cs (2)
179comparisonAction(mainValue, (TTestType)property.GetValue(result)!); 364comparisonAction(mainValue, (TTestType)property.GetValue(result)!);
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
281 return resultProperty?.GetValue(task);
Microsoft.ML.AutoML.Tests (1)
Utils\TaskAgnosticIterationResult.cs (1)
83return propertiesToReport.ToDictionary(p => p.Name, p => (double)metric.GetType().GetProperty(p.Name).GetValue(metric));
Microsoft.ML.Core (2)
CommandLine\CmdParser.cs (2)
2038tag = (string)type.GetProperty("Key").GetValue(value); 2041newValue = type.GetProperty("Value").GetValue(value);
Microsoft.ML.InternalCodeAnalyzer (1)
InstanceInitializerAnalyzer.cs (1)
56bool hasInit = (bool)hasInitProp.GetValue(symbol);
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
199var pValue = property.GetValue(value);
Microsoft.ML.Tests (3)
CollectionsDataViewTest.cs (2)
77var xvalue = property.GetValue(x); 78var yvalue = property.GetValue(y);
FastTreeSumupParityTests.cs (1)
146var handler = (Delegate)handlerProp.GetValue(dense);
Microsoft.ML.Tokenizers.Tests (3)
TiktokenTests.cs (3)
860=> typeof(TiktokenTokenizer).GetProperty("Encoder", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<ReadOnlyMemory<byte>, int>; 863=> typeof(TiktokenTokenizer).GetProperty("Decoder", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<int, ReadOnlyMemory<byte>>; 866=> typeof(TiktokenTokenizer).GetProperty("Vocabulary", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<string, int>;
Microsoft.TestPlatform.CrossPlatEngine (2)
Client\ProxyOperationManager.cs (2)
489_versionCheckRequired = (bool)versionCheckProperty.GetValue(TestHostManager)!; 495_makeRunsettingsCompatible = (bool)makeRunsettingsCompatibleProperty.GetValue(TestHostManager)!;
Microsoft.VisualStudio.TestPlatform.Common (1)
Utilities\TypesToLoadUtilities.cs (1)
33return typesProperty?.GetValue(attribute) as Type[] ?? Enumerable.Empty<Type>();
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\PortablePdbReader.cs (1)
117var methodToken = (int)MethodInfoMethodTokenProperty.GetValue(methodInfo)!;
PresentationCore (3)
System\Windows\Diagnostics\XamlSourceInfoHelper.cs (3)
99Uri sourceUri = overrideSourceUri ?? (Uri)s_sourceBamlUriProperty.GetValue(args); 100int elementLineNumber = (int)s_elementLineNumberProperty.GetValue(args); 101int elementLinePosition = (int)s_elementLinePositionProperty.GetValue(args);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
75type.GetProperty(projectedClass.DefaultInterfaceProperty, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly).GetValue(o),
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Shared (1)
Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
130count = (int)property.GetValue(value)!;
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
46object? origValue = pi.GetValue(options); 47object? cloneValue = pi.GetValue(clone);
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
199responseMessage = taskResultProperty.GetValue(sendTask)!; 238responseMessage = taskResultProperty.GetValue(sendTask)!;
System.Net.Sockets (2)
System\Net\Sockets\Socket.Unix.cs (2)
294object? origValue = pi.GetValue(source); 295object? cloneValue = pi.GetValue(this);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\InvokeTypeInfo.cs (1)
77object? propertyValue = properties[i].propertyInfo.GetValue(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (2)
202return container => factory(property.GetValue(container.ReferenceValue)); 271return container => new PropertyValue(property.GetValue(container.ReferenceValue));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\AccessorBuilder.cs (1)
78return propInfo.GetValue;
System.Private.Windows.Core.TestUtilities (2)
DebuggerAttributes.cs (1)
188member = property.GetValue(obj);
TestAccessor.cs (1)
198PropertyInfo propertyInfo => propertyInfo.GetValue(_instance),
System.Private.Xml (4)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
673return propertyInfo.GetValue(o); 1784var getOnlyList = pi.GetValue(o)!; 1909object? existingCollection = pi.GetValue(o);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
981return memberProperty.GetValue(o);
System.Reflection.Emit (1)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
582int stackChange = -(int)argCountProperty.GetValue(signature)!;
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
199responseMessage = taskResultProperty.GetValue(sendTask)!; 238responseMessage = taskResultProperty.GetValue(sendTask)!;
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
263public Task Task { get { return (Task)_tcsInfo.TaskProperty.GetValue(_tcsInstance); } }