Изменения документа Сценарии

Редактировал(а) Alexandr Fokin 2024/09/30 14:14

От версии 1.4
отредактировано Alexandr Fokin
на 2022/12/07 07:47
Изменить комментарий: К данной версии нет комментариев
К версии 1.5
отредактировано Alexandr Fokin
на 2023/05/14 09:55
Изменить комментарий: К данной версии нет комментариев

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -1,6 +1,6 @@
1 -|(% style="width:123px" %) |(% style="width:1340px" %)Find Types in All Assemblies
1 +|(% style="width:174px" %) |(% style="width:1348px" %)Find Types in All Assemblies
2 2  [[https:~~/~~/stackoverflow.com/questions/4692340/find-types-in-all-assemblies>>https://stackoverflow.com/questions/4692340/find-types-in-all-assemblies]]
3 -|(% style="width:123px" %) |(% style="width:1340px" %)(((
3 +|(% style="width:174px" %) |(% style="width:1348px" %)(((
4 4  Find a private field with Reflection?
5 5  [[https:~~/~~/stackoverflow.com/questions/95910/find-a-private-field-with-reflection>>https://stackoverflow.com/questions/95910/find-a-private-field-with-reflection]]
6 6  
... ... @@ -10,7 +10,8 @@
10 10  Invoke method by MethodInfo
11 11  [[https:~~/~~/stackoverflow.com/questions/919826/invoke-method-by-methodinfo>>https://stackoverflow.com/questions/919826/invoke-method-by-methodinfo]]
12 12  )))
13 -|(% style="width:123px" %) |(% style="width:1340px" %)
14 -|(% style="width:123px" %) |(% style="width:1340px" %)
13 +|(% style="width:174px" %)Получение типа независимо от nullable|(% style="width:1348px" %){{code language="c#"}}PropertyInfo prop;
14 +var type = Nullable.GetUnderlyingType(prop.PropertyType)
15 + ?? prop.PropertyType;{{/code}}
15 15  
16 16