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