58 references to GetProperties
Aspire.Hosting.Testing.Tests (2)
TestingBuilderTests.cs (2)
22var realBuilderProperties = typeof(IDistributedApplicationBuilder).GetProperties().Select(p => p.Name).ToList(); 23var testBuilderProperties = typeof(IDistributedApplicationTestingBuilder).GetProperties().Select(p => p.Name).ToList();
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (2)
365PropertyInfo[] props = type.GetProperties(); 437PropertyInfo[] props = Globals.TypeOfException.GetProperties();
Microsoft.AspNetCore.App.Analyzers.Test (1)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
164.GetProperties()
Microsoft.AspNetCore.Http.Extensions (3)
RequestDelegateFactory.cs (1)
1601var properties = parameterType.GetProperties();
src\Shared\ParameterBindingMethodCache.cs (1)
324var properties = type.GetProperties();
src\Shared\PropertyAsParameterInfo.cs (1)
120var properties = parameters[i].ParameterType.GetProperties();
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
IdentityUserContext.cs (4)
184var personalDataProps = typeof(TUser).GetProperties().Where( 232var tokenProps = typeof(TUserToken).GetProperties().Where( 277var personalDataProps = typeof(TUser).GetProperties().Where( 325var tokenProps = typeof(TUserToken).GetProperties().Where(
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
62var personalDataProps = typeof(TUser).GetProperties().Where(
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
62var personalDataProps = typeof(TUser).GetProperties().Where(
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
324var properties = type.GetProperties();
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\Shared\PropertyAsParameterInfo.cs (1)
120var properties = parameters[i].ParameterType.GetProperties();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2309foreach (var property in controllerType.GetProperties())
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\ActionModelTest.cs (1)
85foreach (var property in typeof(ActionModel).GetProperties())
ApplicationModels\AttributeRouteModelTests.cs (1)
26foreach (var property in typeof(AttributeRouteModel).GetProperties())
ApplicationModels\ControllerModelTest.cs (1)
87foreach (var property in typeof(ControllerModel).GetProperties())
ApplicationModels\ParameterModelTest.cs (1)
31foreach (var property in typeof(ParameterModel).GetProperties())
ApplicationModels\PropertyModelTest.cs (1)
27foreach (var property in typeof(PropertyModel).GetProperties())
Microsoft.AspNetCore.OpenApi (2)
src\Shared\ParameterBindingMethodCache.cs (1)
324var properties = type.GetProperties();
src\Shared\PropertyAsParameterInfo.cs (1)
120var properties = parameters[i].ParameterType.GetProperties();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
197foreach (var property in controllerType.GetProperties())
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentParameters.cs (1)
77foreach (var propertyInfo in typeof(DeploymentParameters).GetProperties())
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
SniOptionsSelectorTests.cs (1)
809var propertyNames = typeof(SslServerAuthenticationOptions).GetProperties().Select(property => property.Name).ToList();
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
259if (interfaceType.GetProperties().Length != 0)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TranslationHelpers.cs (1)
129foreach (var prop in left.GetType().GetProperties())
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
137analyzer.ThrowOn(typeof(DiagnosticAnalyzer).GetProperties().Single().Name); 145analyzer.ThrowOn(typeof(DiagnosticAnalyzer).GetProperties().Single().Name);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\DebuggerAttributes.cs (1)
90IEnumerable<PropertyInfo> visibleProperties = debuggerAttributeType.GetProperties()
Microsoft.Maui (1)
Converters\KeyboardTypeConverter.cs (1)
35 PropertyInfo? property = kbType.GetProperties()?.FirstOrDefault(pi => pi != null && pi.Name == keyboard && pi.CanRead && (pi.GetMethod?.IsStatic ?? false));
Microsoft.Maui.Controls (2)
LegacyLayouts\ConstraintExpression.cs (2)
43 minfo = typeof(View).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod; 52 minfo = typeof(View).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod;
Microsoft.ML.AutoML.Tests (1)
Utils\TaskAgnosticIterationResult.cs (1)
81var propertiesToReport = metric.GetType().GetProperties().Where(p => p.PropertyType == typeof(double));
Microsoft.ML.EntryPoints (2)
JsonUtils\JsonManifestUtils.cs (2)
65var propertyInfos = epKind.GetProperties().AsEnumerable(); 66propertyInfos = epKind.GetInterfaces().Aggregate(propertyInfos, (current, face) => current.Union(face.GetProperties()));
Microsoft.ML.IntegrationTests (1)
Common.cs (1)
23var toyClassProperties = typeof(TypeTestData).GetProperties();
PresentationFramework (1)
System\Windows\Data\CollectionView.cs (1)
1469properties = ictp.GetCustomType().GetProperties();
ReachFramework (2)
Serialization\Manager\MetroSerializationManager.cs (1)
831PropertyInfo[] properties = dependencyProperty.OwnerType.GetProperties();
Serialization\Manager\ReachSerializationCacheItems.cs (1)
88PropertyInfo[] properties = type.GetProperties();
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (2)
149HashSet<string> mainTypeMemberNames = new HashSet<string>(mainType.GetProperties().Select(p => p.Name)); 153var buddyProperties = associatedMetadataType.GetProperties().Select(p => p.Name);
System.ComponentModel.Composition (2)
Microsoft\Internal\ReflectionServices.cs (1)
126return type.GetInterfaces().Concat(new Type[] { type }).SelectMany(itf => itf.GetProperties());
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
293foreach (PropertyInfo pi in attrType.GetProperties())
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
448foreach (PropertyInfo pi in type.GetProperties())
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
870foreach (PropertyInfo pi in GetType().GetProperties())
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
30foreach (PropertyInfo propertyInfo in dataType.GetProperties())
System.Private.Windows.Core.TestUtilities (1)
DebuggerAttributes.cs (1)
77IEnumerable<PropertyInfo> visibleProperties = debuggerAttributeType.GetProperties()
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
283return type.GetProperties();
System.Windows.Forms (3)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (3)
112foreach (PropertyInfo property in listType.GetProperties()) 132foreach (PropertyInfo property in listType.GetProperties()) 176foreach (PropertyInfo property in listType.GetProperties())
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
123PropertyInfo[] props = enumType.GetProperties();
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\DesignerHostTests.cs (1)
3134Assert.Equal(typeof(IDesignerHost).GetProperties(), reflect.GetProperties(BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public));
System.Windows.Forms.Tests (2)
System\Windows\Forms\Design\DesignerAttributeTests.cs (2)
60foreach (var property in type.GetProperties()) 76foreach (var property in type.GetProperties())