30 references to GetProperties
Microsoft.AspNetCore.Shared.Tests (30)
PropertyHelperTest.cs (29)
19
var property = PropertyHelper.
GetProperties
(anonymous.GetType()).First().Property;
34
var property = PropertyHelper.
GetProperties
(anonymous.GetType()).First().Property;
49
var property = PropertyHelper.
GetProperties
(anonymous.GetType()).First().Property;
65
var helper = PropertyHelper.
GetProperties
(
81
var helper = PropertyHelper.
GetProperties
(
97
var property = PropertyHelper.
GetProperties
(anonymous.GetType()).First().Property;
114
var helpers1 = PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo());
115
var helpers2 = PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo());
130
var helper = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()));
141
var helper = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()));
152
var helper = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()));
164
var helper = Assert.Single(PropertyHelper.
GetProperties
(obj.GetType().GetTypeInfo()));
179
var helper = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()));
189
var properties = PropertyHelper.
GetProperties
(nullableType);
202
var properties = PropertyHelper.
GetProperties
(myType);
219
var helper1 = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()).Where(prop => prop.Name == "IntProp"));
220
var helper2 = Assert.Single(PropertyHelper.
GetProperties
(anonymous.GetType().GetTypeInfo()).Where(prop => prop.Name == "StringProp"));
232
var helpers = PropertyHelper.
GetProperties
(derived.GetType().GetTypeInfo()).ToArray();
252
var helpers = PropertyHelper.
GetProperties
(derived.GetType().GetTypeInfo()).ToArray();
272
var helpers = PropertyHelper.
GetProperties
(derived.GetType().GetTypeInfo()).ToArray();
292
var helpers = PropertyHelper.
GetProperties
(typeof(ICollection<string>));
308
var helpers = PropertyHelper.
GetProperties
(typeof(IDictionary<string, string>));
326
var result = PropertyHelper.
GetProperties
(type).ToArray();
490
.
GetProperties
(typeof(BaseClass))
504
.
GetProperties
(typeof(MyProperties))
518
.
GetProperties
(typeof(BaseClass))
535
.
GetProperties
(typeof(MyProperties))
552
.
GetProperties
(typeof(BaseClass))
569
.
GetProperties
(typeof(MyProperties))
src\Shared\PropertyHelper\PropertyHelper.cs (1)
50
/// This constructor does not cache the helper. For caching, use <see cref="
GetProperties
(Type)"/>.