38 references to GetDeclaredProperty
Diagnostics.EFCore.FunctionalTests (1)
Helpers\StringHelpers.cs (1)
20return (string)strings.GetDeclaredProperty(stringName).GetValue(null);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
290TaskProperty = GenericType.GetTypeInfo().GetDeclaredProperty("Task");
GenerateDocumentationAndConfigFiles (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Infrastructure.Common (1)
xunit\ConditionAttribute.cs (1)
116PropertyInfo pi = ti.GetDeclaredProperty(name);
Metrics (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Microsoft.AspNetCore.Shared.Tests (9)
PropertyActivatorTest.cs (5)
18var property = typeInfo.GetDeclaredProperty("IntProperty"); 41var property = typeInfo.GetDeclaredProperty("IntProperty"); 57var expectedPropertyInfo = typeInfo.GetDeclaredProperty("ActivatableProperty"); 81var expectedPropertyInfo = typeInfo.GetDeclaredProperty("IntProperty"); 105var expectedPropertyInfo = typeInfo.GetDeclaredProperty("Public");
PropertyHelperTest.cs (4)
439var publicProperty = typeInfo.GetDeclaredProperty("PropA"); 440var protectedProperty = typeInfo.GetDeclaredProperty("PropProtected"); 459var property = typeInfo.GetDeclaredProperty("PropA"); 475var property = typeInfo.GetDeclaredProperty("PropB");
Microsoft.CodeAnalysis (3)
InternalUtilities\UICultureUtilities.cs (3)
32var currentUICultureSetter = type.GetTypeInfo().GetDeclaredProperty(currentUICultureName)?.SetMethod; 71var currentThreadGetter = typeInfo.GetDeclaredProperty(currentThreadName)?.GetMethod; 78var currentUICultureSetter = typeInfo.GetDeclaredProperty(currentUICultureName)?.SetMethod;
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
527object key = type.GetDeclaredProperty("Key").GetValue(obj, Array.Empty<object>()); 528object value = type.GetDeclaredProperty("Value").GetValue(obj, Array.Empty<object>());
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
149var property = currentType.GetDeclaredProperty(memberName);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\DebuggerAttributes.cs (1)
252PropertyInfo? pi = t.GetTypeInfo().GetDeclaredProperty(propertyName);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\UICultureUtilities.cs (3)
32var currentUICultureSetter = type.GetTypeInfo().GetDeclaredProperty(currentUICultureName)?.SetMethod; 71var currentThreadGetter = typeInfo.GetDeclaredProperty(currentThreadName)?.GetMethod; 78var currentUICultureSetter = typeInfo.GetDeclaredProperty(currentUICultureName)?.SetMethod;
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
181PropertyInfo pi = ti.GetDeclaredProperty(name);
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
181PropertyInfo pi = ti.GetDeclaredProperty(name);
Microsoft.Maui.Controls (1)
BindingExpression.cs (1)
387 property = type.GetDeclaredProperty(part.Content);
Microsoft.ML.InternalCodeAnalyzer (1)
InstanceInitializerAnalyzer.cs (1)
53var hasInitProp = typeInfo.GetDeclaredProperty("HasInitializer");
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesFilterAndTransform.cs (1)
771PropertyInfo? propertyInfo = typeInfo.GetDeclaredProperty(propertyName);
System.Private.Windows.Core.TestUtilities (1)
DebuggerAttributes.cs (1)
219if (t.GetTypeInfo().GetDeclaredProperty(propertyName) is { } property)
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
292TaskProperty = GenericType.GetTypeInfo().GetDeclaredProperty("Task");
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Workspaces\SyntaxNodeExtensions.cs (1)
21var property = typeof(Simplifier).GetTypeInfo().GetDeclaredProperty("AddImportsAnnotation");
xunit.assert (1)
Sdk\AssertHelper.cs (1)
71 static readonly Lazy<PropertyInfo?> fileSystemInfoFullNameProperty = new Lazy<PropertyInfo?>(() => Type.GetType(fileSystemInfoFqn)?.GetTypeInfo().GetDeclaredProperty("FullName"));