217 references to GetValue
Aspire.Azure.Messaging.EventHubs.Tests (1)
AspireEventHubsExtensionsTests.cs (1)
666Assert.Equal(testInfo.ConsumerGroup, consumerGroupProperty.GetValue(settings));
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.Tests (2)
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();
Diagnostics.EFCore.FunctionalTests (1)
Helpers\StringHelpers.cs (1)
20return (string)strings.GetDeclaredProperty(stringName).GetValue(null);
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);
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); } }
GetDocument.Insider (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
193return (IServiceProvider?)servicesProperty?.GetValue(host);
Metrics (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Metrics.Legacy (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Microsoft.AspNetCore.Components (1)
Reflection\PropertyGetter.cs (1)
43_GetterDelegate = property.GetValue;
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Components.Forms (1)
EditContextDataAnnotationsExtensions.cs (1)
91var propertyValue = propertyInfo.GetValue(fieldIdentifier.Model);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
60return (ServiceDescriptor?)property.GetValue(null);
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
60return (ServiceDescriptor?)property.GetValue(null);
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
1088var value = property.GetValue(o);
Microsoft.AspNetCore.Http.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Validation\ValidatablePropertyInfo.cs (1)
66var propertyValue = property.GetValue(value);
Microsoft.AspNetCore.Http.Extensions.Tests (3)
ValidationsGenerator\ValidationsGeneratorTestBase.cs (3)
93var service = (ValidationOptions)valueProperty.GetValue(optionsInstance) ?? throw new InvalidOperationException("Could not resolve ValidationOptions."); 104var endpoints = (IReadOnlyList<Endpoint>)service.GetType().GetProperty("Endpoints", BindingFlags.Instance | BindingFlags.Public).GetValue(service); 376return (IServiceProvider)servicesProperty.GetValue(host);
Microsoft.AspNetCore.Http.Tests (6)
CookieOptionsTests.cs (4)
46Assert.Equal(property.GetValue(original), property.GetValue(copy)); 49Assert.NotSame(property.GetValue(original), property.GetValue(copy));
DefaultHttpContextTests.cs (2)
397Assert.Same(features, property.GetValue(value)); 403var v = property.GetValue(value);
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\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Mvc.Core.Test (12)
ApplicationModels\ActionModelTest.cs (2)
96var value1 = property.GetValue(action); 97var value2 = property.GetValue(action2);
ApplicationModels\AttributeRouteModelTests.cs (2)
28var value1 = property.GetValue(route); 29var value2 = property.GetValue(route2);
ApplicationModels\ControllerModelTest.cs (2)
98var value1 = property.GetValue(controller); 99var value2 = property.GetValue(controller2);
ApplicationModels\ParameterModelTest.cs (2)
39var value1 = property.GetValue(parameter); 40var value2 = property.GetValue(parameter2);
ApplicationModels\PropertyModelTest.cs (2)
35var value1 = property.GetValue(propertyModel); 36var value2 = property.GetValue(propertyModel2);
RequestFormLimitsAttributeTest.cs (2)
47formOptionsProperty.GetValue(formOptions), 48formLimitsAttributeProperty.GetValue(requestFormLimitsAttribute));
Microsoft.AspNetCore.Mvc.Testing (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
193return (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.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
384return (IServiceProvider)servicesProperty.GetValue(host);
Microsoft.AspNetCore.Routing (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.Routing.Abstractions (1)
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.Shared.Tests (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
237return propertyInfo.GetValue;
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HttpConnectionFactoryTests.cs (1)
119Assert.Equal(testValues[property.Name], property.GetValue(shallowCopiedOptions));
Microsoft.AspNetCore.TestHost (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.5.25256.101\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
193return (IServiceProvider?)servicesProperty?.GetValue(host);
Microsoft.Build (10)
Utilities\NuGetFrameworkWrapper.cs (10)
87return FrameworkProperty.GetValue(Parse(tfm)) as string; 92var version = VersionProperty.GetValue(Parse(tfm)) as Version; 98return PlatformProperty.GetValue(Parse(tfm)) as string; 103var version = PlatformVersionProperty.GetValue(Parse(tfm)) as Version; 128(FrameworkProperty.GetValue(l.parsedTfm) as string).Equals(FrameworkProperty.GetValue(r.parsedTfm) as string, StringComparison.OrdinalIgnoreCase) && 129(((Convert.ToBoolean(AllFrameworkVersionsProperty.GetValue(l.parsedTfm))) && (Convert.ToBoolean(AllFrameworkVersionsProperty.GetValue(r.parsedTfm)))) || 130((VersionProperty.GetValue(l.parsedTfm) as Version) == (VersionProperty.GetValue(r.parsedTfm) as Version)))))
Microsoft.Build.Engine.UnitTests (1)
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
837return (SdkReference)parsedSdkInfo.GetValue(element);
Microsoft.CodeAnalysis.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Options\GlobalOptionsTests.cs (2)
116var value = property.GetValue(options); 119var defaultValue = property.GetValue(defaultOptions);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrValue.cs (1)
320var propertyValue = property.GetValue(RawValue);
ResultProviderTestBase.cs (1)
30return (string)emptyProperty.GetValue(exceptionType.Instantiate());
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerWrapper.cs (1)
50var response = _responseTaskResultProperty.GetValue(responseTask);
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
RazorPredefinedProviderNameTests.cs (1)
60.ToImmutableDictionary(property => property.Name, property => (string)property.GetValue(null)!);
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
DeclarePublicApiAnalyzer.cs (1)
276var provider = analyzerOptions.GetType().GetRuntimeProperty("AnalyzerConfigOptionsProvider")?.GetValue(analyzerOptions);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
RoundTripUtil.cs (6)
239var originalValue = propertyInfo.GetValue(originalOptions)!; 240var rebuildValue = propertyInfo.GetValue(rebuildOptions)!; 246var originalValue = propertyInfo.GetValue(originalOptions); 247var rebuildValue = propertyInfo.GetValue(rebuildOptions); 267var originalValue = propertyInfo.GetValue(originalOptions); 268var rebuildValue = propertyInfo.GetValue(rebuildOptions);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
Microsoft.CodeAnalysis.UnitTests (6)
Collections\DebuggerAttributes.cs (1)
220member = pi.GetValue(obj);
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (1)
254KeyValuePair<int, string>[]? items = itemProperty.GetValue(info.Instance) as KeyValuePair<int, string>[];
Collections\ImmutableSegmentedDictionaryTest.cs (1)
254KeyValuePair<string, int>[]? items = itemProperty.GetValue(info.Instance) as KeyValuePair<string, int>[];
Collections\ImmutableSegmentedHashSetTest.cs (1)
190int[]? items = itemProperty.GetValue(info.Instance) as int[];
Collections\ImmutableSegmentedListBuilderTest.cs (1)
364string[]? items = itemProperty.GetValue(info.Instance) as string[];
Collections\ImmutableSegmentedListTest.cs (1)
779double[]? items = itemProperty.GetValue(info.Instance) as double[];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
150result = task.GetType().GetProperty("Result")!.GetValue(task);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
150result = 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.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
161return () => (bool)pi.GetValue(null);
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
161return () => (bool)pi.GetValue(null);
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
47return (Type)_jsonTypeInfo_ElementType.GetValue(typeInfo)!; 59return (string?)_jsonPropertyInfo_MemberName.GetValue(propertyInfo);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
90switch (property.GetValue(AIJsonSchemaCreateOptions.Default))
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
285property.SetValue(instance, property.GetValue(instance)); 301initialValueProvider: () => property.GetValue(instance),
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
Microsoft.Extensions.Http.Resilience (1)
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 (1)
DataAnnotationValidateOptions.cs (1)
104object? value = propertyInfo!.GetValue(options);
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
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 (2)
CollectionsDataViewTest.cs (2)
77var xvalue = property.GetValue(x); 78var yvalue = property.GetValue(y);
Microsoft.ML.Tokenizers.Tests (3)
TiktokenTests.cs (3)
762=> typeof(TiktokenTokenizer).GetProperty("Encoder", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<ReadOnlyMemory<byte>, int>; 765=> typeof(TiktokenTokenizer).GetProperty("Decoder", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<int, ReadOnlyMemory<byte>>; 768=> typeof(TiktokenTokenizer).GetProperty("Vocabulary", BindingFlags.Instance | BindingFlags.NonPublic)?.GetValue(tiktoken) as IReadOnlyDictionary<string, int>;
Microsoft.TestUtilities (1)
XUnit\ConditionalTheoryDiscoverer.cs (1)
61skipReason = property.GetValue(obj) as string;
Microsoft.VisualStudio.LanguageServices (4)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (4)
73var extension_Header = extensionType_HeaderProperty.GetValue(extension); 76var identifier = (string)extension_HeaderType_Identifier.GetValue(extension_Header); 79var extension_Content = (IEnumerable<object>)extensionType_ContentProperty.GetValue(extension); 123var content_ContentTypeName = contentType_ContentTypeNameProperty.GetValue(content) as string;
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 (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Shared (3)
Data.Validation\LengthAttribute.cs (1)
136count = (int)property.GetValue(value)!;
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (2)
47return (Type)_jsonTypeInfo_ElementType.GetValue(typeInfo)!; 59return (string?)_jsonPropertyInfo_MemberName.GetValue(propertyInfo);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
130count = (int)property.GetValue(value)!;
System.Net.Http (2)
src\libraries\Common\src\System\Net\Security\SslClientAuthenticationOptionsExtensions.cs (2)
42object? origValue = pi.GetValue(options); 43object? cloneValue = pi.GetValue(clone);
System.Net.Security (7)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (7)
175responseMessage = taskOfHttpResponseMessageResultProp.GetValue(sendTask)!; 187int statusCode = (int)responseStatusCodeProp.GetValue(responseMessage)!; 188object responseHeaders = responseHeadersProp.GetValue(responseMessage)!; 189Uri? location = (Uri?)responseHeadersLocationProp.GetValue(responseHeaders); 190redirectUri = GetUriForRedirect((Uri)requestUriProp.GetValue(requestMessage)!, statusCode, location, out hasRedirect); 219responseMessage = taskOfHttpResponseMessageResultProp.GetValue(sendTask)!; 234object content = responseContentProp.GetValue(responseMessage)!;
System.Net.Sockets (2)
System\Net\Sockets\Socket.Unix.cs (2)
279object? origValue = pi.GetValue(source); 280object? cloneValue = pi.GetValue(this);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\InvokeTypeInfo.cs (1)
77object? propertyValue = properties[i].propertyInfo.GetValue(value);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (2)
181return container => factory(property.GetValue(container.ReferenceValue)); 250return 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)
194PropertyInfo propertyInfo => propertyInfo.GetValue(_instance),
System.Private.Xml (3)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
664return propertyInfo.GetValue(o); 1679var getOnlyList = pi.GetValue(o)!;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (1)
827return memberProperty.GetValue(o);
System.Reflection.Emit (1)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
582int stackChange = -(int)argCountProperty.GetValue(signature)!;
System.Security.Cryptography (11)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (7)
175responseMessage = taskOfHttpResponseMessageResultProp.GetValue(sendTask)!; 187int statusCode = (int)responseStatusCodeProp.GetValue(responseMessage)!; 188object responseHeaders = responseHeadersProp.GetValue(responseMessage)!; 189Uri? location = (Uri?)responseHeadersLocationProp.GetValue(responseHeaders); 190redirectUri = GetUriForRedirect((Uri)requestUriProp.GetValue(requestMessage)!, statusCode, location, out hasRedirect); 219responseMessage = taskOfHttpResponseMessageResultProp.GetValue(sendTask)!; 234object content = responseContentProp.GetValue(responseMessage)!;
System\Security\Cryptography\XmlKeyHelper.cs (4)
297s_docRootProperty.GetValue(s_xDocumentCreate(xmlString)); 303(string?)s_nameNameProperty.GetValue(s_elementNameProperty.GetValue(element)); 306(string?)s_elementValueProperty.GetValue(element);
System.Windows.Forms.Design.Tests (11)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (8)
235Assert.Equal("TestValue", (string)nameProperty.GetValue(obj: null)); 266Assert.Equal("TestValue", (string)nameProperty.GetValue(obj: null)); 295Assert.Equal("TestValue", (string)nameProperty.GetValue(obj: null)); 640byte[] resourceByte = Assert.IsType<byte[]>(mediaPlayerPropertyInfo.GetValue(obj: null)); 677byte[] resourceBytes = Assert.IsType<byte[]>(imagePropertyInfo.GetValue(obj: null)); 685byte[] resourceByte = Assert.IsType<byte[]>(iconPropertyInfo.GetValue(obj: null)); 692string resourceTxtFileContents = Assert.IsType<string>(txtFilePropertyInfo.GetValue(obj: null)); 699Assert.IsType<UnmanagedMemoryStream>(audioPropertyInfo.GetValue(obj: null));
System\Windows\Forms\Design\ToolStripEditorManagerTests.cs (3)
182_toolStripEditorControlType?.GetProperty("Controls")?.GetValue(_toolStripEditorControl).Should().BeOfType<Control.ControlCollection>(); 188object? propertyValue = propertyInfo?.GetValue(targetObject); 202Rectangle? actualBounds = boundsProperty.GetValue(_toolStripEditorControl) as Rectangle?;
System.Windows.Forms.Tests (8)
MaskedTextBoxTests.cs (2)
718property.GetValue(maskedTextBox).Should().Be(value); 722property.GetValue(maskedTextBox).Should().Be(!value);
System\Windows\Forms\MonthCalendarTests.cs (1)
4482((DateTime[])typeof(MonthCalendar).GetProperty(propertyName).GetValue(calendar)).Length.Should().Be(expectedCount);
ToolStripContainerTests.cs (5)
50Size result = (Size)propertyInfo.GetValue(_toolStripContainer); 204Color colorValue = (Color)colorType.GetProperty(colorName).GetValue(null); 222bool defaultValue = (bool)propertyInfo.GetValue(_toolStripContainer); 226bool value = (bool)propertyInfo.GetValue(_toolStripContainer); 230value = (bool)propertyInfo.GetValue(_toolStripContainer);
System.Windows.Forms.UI.IntegrationTests (1)
DataGridViewTests.cs (1)
67object? actual = toolTip.GetType().GetProperty("Activated")?.GetValue(toolTip);
Test.Utilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
Text.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (2)
211var syntaxTreeOptionsProvider = s_compilationOptionsSyntaxTreeOptionsProviderProperty?.GetValue(compilation.Options); 250var options = (ImmutableDictionary<string, ReportDiagnostic>)s_syntaxTreeDiagnosticOptionsProperty.GetValue(tree)!;
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
22s_addImportsAnnotation = property?.GetValue(null) as SyntaxAnnotation;
VisualBasicRuntimeTest (1)
Program.cs (1)
141var control = (Control)controlProperty.GetValue(dialog);
xunit.assert (7)
Sdk\ArgumentFormatter.cs (1)
343 .Select(p => new { name = p.Name, value = WrapAndGetFormattedValue(() => p.GetValue(value), depth) });
Sdk\AssertEqualityComparer.cs (4)
325 var xKey = typeof(T).GetRuntimeProperty("Key")?.GetValue(x); 326 var yKey = typeof(T).GetRuntimeProperty("Key")?.GetValue(y); 352 var xValue = typeof(T).GetRuntimeProperty("Value")?.GetValue(x); 353 var yValue = typeof(T).GetRuntimeProperty("Value")?.GetValue(y);
Sdk\AssertHelper.cs (2)
161 .Select(p => new { name = p.Name, getter = (Func<object?, object?>)p.GetValue }); 612 var fullName = fileSystemInfoFullNameProperty.Value.GetValue(expected);