3 overrides of GetValue
System.Private.CoreLib (2)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
111public override object GetValue(object? obj, object?[]? index)
src\System\Reflection\RuntimePropertyInfo.cs (1)
326public override object? GetValue(object? obj, object?[]? index)
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
86public override object? GetValue(object? obj, object?[]? index)
89 references to GetValue
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
1011object propertyValue = property.GetValue(attribute, null); 1012object defaultValue = property.GetValue(defaultAttribute, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
602return propertyInfo.GetValue(_instance, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
293bodyPartValues[i++] = property.GetValue(bodyObject, null);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Infrastructure\TestHelpers.cs (1)
43var descriptor = property.GetValue(null, null) as MessageDescriptor;
Microsoft.Build (3)
Instance\TaskFactories\TaskHostTask.cs (1)
227return parameter.GetValue(this, null);
Instance\TaskFactoryWrapper.cs (1)
244return propertyInfo.Reflection?.GetValue(task, null);
PrintLineDebugger.cs (1)
72return (CommonWriterType)CommonWriterProperty.Value.GetValue(null, null);
Microsoft.Build.Engine.OM.UnitTests (3)
Construction\ElementLocationPublic_Tests.cs (2)
131var values = new List<KeyValuePair<string, ElementLocation>>((ICollection<KeyValuePair<string, ElementLocation>>)property.GetValue(element, null)); 137var value = ((ElementLocation)property.GetValue(element, null));
PrintLineDebugger.cs (1)
72return (CommonWriterType)CommonWriterProperty.Value.GetValue(null, null);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\TaskBuilderTestTask.cs (1)
1238return GetType().GetProperty(property.Name).GetValue(this, null);
BackEnd\TranslationHelpers.cs (6)
135object leftProp = prop.GetValue(left, null); 136object rightProp = prop.GetValue(right, null); 144if (leftProp != null && !prop.GetValue(left, null).Equals(prop.GetValue(right, null))) 146diffReason = $"Property {prop.Name} is different ({prop.GetValue(left, null)} vs {prop.GetValue(rightProp, null)}).";
Construction\ElementLocation_Tests.cs (1)
436var value = ((ElementLocation)property.GetValue(node, null));
Microsoft.Build.Tasks.Core (1)
PrintLineDebugger.cs (1)
72return (CommonWriterType)CommonWriterProperty.Value.GetValue(null, null);
Microsoft.Build.Tasks.UnitTests (2)
ToolTaskExtension_Tests.cs (2)
40TaskLoggingHelper log = (TaskLoggingHelper)logShared.GetValue(t, null); 46log = (TaskLoggingHelper)logPrivate.GetValue(t, null);
Microsoft.Build.Utilities.Core (1)
PrintLineDebugger.cs (1)
72return (CommonWriterType)CommonWriterProperty.Value.GetValue(null, null);
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
528object key = type.GetDeclaredProperty("Key").GetValue(obj, Array.Empty<object>()); 529object value = type.GetDeclaredProperty("Value").GetValue(obj, Array.Empty<object>());
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
266return property.GetValue(obj, Array.Empty<object>());
Microsoft.CodeAnalysis.Test.Utilities (3)
Syntax\NodeHelpers.cs (3)
208return new NodeInfo.FieldInfo(prop.Name, prop.PropertyType, prop.GetValue(node, null)); 214return new NodeInfo.FieldInfo(prop.Name, prop.PropertyType, prop.GetValue(token, null)); 220return new NodeInfo.FieldInfo(prop.Name, prop.PropertyType, prop.GetValue(trivia, null));
Microsoft.CodeAnalysis.UnitTests (2)
AnalyzerAssemblyLoaderTests.cs (1)
1205var value = prop.GetValue(a, null);
Collections\DebuggerAttributes.cs (1)
46pi.GetValue(info.Instance, null);
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
VBParser.vb (1)
26Return node.GetType().GetTypeInfo().GetDeclaredProperty("Kind").GetValue(node, Nothing).ToString()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
ObjectExtensions.cs (1)
28var result = propertyInfo.GetValue(instance, null);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
1799string value = prop.GetValue(this, null)?.ToString();
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
19var value = property.GetValue(type, null);
Microsoft.Gen.Logging.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
20var value = property.GetValue(type, null);
Microsoft.Gen.Metrics.Unit.Tests (1)
DiagDescriptorsTests.cs (1)
19var value = property.GetValue(type, null);
Microsoft.Maui (1)
Converters\KeyboardTypeConverter.cs (1)
36 if (property != null && property?.GetValue(null, null) is Keyboard propKb)
Microsoft.Maui.Controls (1)
ScrollView\ScrollView.cs (1)
367 coordinate += (double)typeof(VisualElement).GetProperty(coordinateName).GetValue(item, null);
Microsoft.ML.IntegrationTests (2)
Debugging.cs (1)
152rowSum += (float)row.GetType().GetProperty(property).GetValue(row, null);
IntrospectiveTraining.cs (1)
375string value = (string)row.GetType().GetProperty(Adult.CategoricalFeatures[i]).GetValue(row, null);
MSBuild (2)
OutOfProcTaskAppDomainWrapperBase.cs (1)
368finalParameterValues[value.Name] = value.GetValue(wrappedTask, null);
PrintLineDebugger.cs (1)
72return (CommonWriterType)CommonWriterProperty.Value.GetValue(null, null);
MSBuildTaskHost (1)
OutOfProcTaskAppDomainWrapperBase.cs (1)
368finalParameterValues[value.Name] = value.GetValue(wrappedTask, null);
PresentationCore (1)
System\Windows\Input\CursorConverter.cs (1)
66values[i] = info.GetValue(null, null);
PresentationFramework (11)
MS\Internal\Data\IndexedEnumerable.cs (3)
536value = (int)_reflectedCount.GetValue(Enumerable, null); 569isEmpty = ((int)_reflectedCount.GetValue(Enumerable, null) == 0); 635value = _reflectedItemAt.GetValue(Enumerable, new object[] { index });
MS\Internal\Data\PropertyPathWorker.cs (1)
238value = pi.GetValue(item, null);
MS\Internal\LayoutDump.cs (4)
906Visual visual = (Visual)prop.GetValue(paraClient, null); 934int count = (int)prop.GetValue(element, null); 967int columnIndex = (int)propOfColumnIndex.GetValue(cell, null); 975int rowIndex = (int)propOfRowIndex.GetValue(cell, null);
MS\Internal\SystemDataHelper.cs (1)
80return nullProperty.GetValue(null, null);
System\Windows\Input\Command\CommandConverter.cs (1)
141command = propertyInfo.GetValue(null, null) as ICommand;
System\Windows\Markup\BamlRecordReader.cs (1)
1994xmlSerializable = pi.GetValue(parent, null) as IXmlSerializable;
PresentationUI (1)
MS\Internal\Documents\DocumentSignatureManager.cs (1)
1207error = (int)p.GetValue(ce, null);
ReachFramework (2)
Serialization\Manager\MetroSerializationManager.cs (2)
1039propertyCache.PropertyValue = propertyCache.PropertyInfo.GetValue(serializableObject, null); 1048propertyCache.PropertyValue = propertyCache.PropertyInfo.GetValue(serializableObject, null);
System.ComponentModel.Annotations (3)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
48object? otherPropertyValue = otherPropertyInfo.GetValue(validationContext.ObjectInstance, null);
System\ComponentModel\DataAnnotations\LocalizableString.cs (1)
157_cachedResult = () => (string?)property!.GetValue(null, null);
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (1)
295_errorMessageResourceAccessor = () => (string)property.GetValue(null, null)!;
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
306object? value = pi.GetValue(attr, null);
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
138return ((PropertyInfo)MemberInfo).GetValue(null, translatedArguments);
System.Composition.TypedParts (2)
System\Composition\TypedParts\ContractHelpers.cs (1)
76importMetadata.Add(prop.Name, prop.GetValue(attr, null));
System\Composition\TypedParts\Discovery\TypeInspector.cs (1)
160AddMetadata(metadata, prop.Name, prop.PropertyType, prop.GetValue(attribute, null));
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
871tw.WriteLine("{0}: {1}", pi.Name, pi.GetValue(this, null));
System.Data.Common (2)
System\Data\Common\SqlUDTStorage.cs (1)
48return propInfo.GetValue(null, null)!;
System\Data\DataColumn.cs (1)
664_defaultValue = propInfo.GetValue(null, null)!;
System.Drawing.Primitives (1)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\PropertyInfo.cs (1)
42public object? GetValue(object? obj) => GetValue(obj, index: null);
System.Private.Windows.Core.TestUtilities (1)
DebuggerAttributes.cs (1)
29pi.GetValue(info.Instance, null);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
88return UnderlyingProperty.GetValue(obj, index);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1474if (property != null && (bool)property.GetValue(this, null))
System.Windows.Forms (5)
System\Windows\Forms\Input\CursorConverter.cs (5)
62return prop.GetValue(null, null); 106Cursor? knownCursor = (Cursor?)prop.GetValue(obj: null, index: null); 125if (prop.GetValue(null, null) == value) 168Debug.Assert(prop.GetValue(null, tempIndex) is not null, $"Property {prop.Name} returned NULL"); 169if (prop.GetValue(null, tempIndex) is object item)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1514result = propInfo.GetValue(target, null); 1524result = prop.GetValue(null, null);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
141if (prop.GetValue(obj: null, index: null) is not Color outColor)
System.Windows.Forms.Tests (1)
System\Windows\Forms\CursorsTests.cs (1)
71Assert.NotNull((Cursor)property.GetValue(null, tempIndex));
System.Xaml (1)
System\Windows\Markup\StaticExtension.cs (1)
139value = prop.GetValue(null, null);
VBCSCompiler.UnitTests (1)
NamedPipeTestUtil.cs (1)
42var socket = (Socket?)listeningSocketProperty?.GetValue(sharedServer, null);
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
158RunTranslator(this[propertyName], SourceObject, propertyName, property.GetValue(SourceObject, null));
xunit.assert (2)
Sdk\ArgumentFormatter.cs (2)
547 var k = typeInfo.GetProperty("Key")?.GetValue(value, null); 548 var v = typeInfo.GetProperty("Value")?.GetValue(value, null);