Исходный код вики Сценарии
Версия 1.5 от Alexandr Fokin на 2023/05/14 09:55
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | |(% style="width:174px" %) |(% style="width:1348px" %)Find Types in All Assemblies | ||
| 2 | [[https:~~/~~/stackoverflow.com/questions/4692340/find-types-in-all-assemblies>>https://stackoverflow.com/questions/4692340/find-types-in-all-assemblies]] | ||
| 3 | |(% style="width:174px" %) |(% style="width:1348px" %)((( | ||
| 4 | Find a private field with Reflection? | ||
| 5 | [[https:~~/~~/stackoverflow.com/questions/95910/find-a-private-field-with-reflection>>https://stackoverflow.com/questions/95910/find-a-private-field-with-reflection]] | ||
| 6 | |||
| 7 | Using C# reflection to call a constructor | ||
| 8 | [[https:~~/~~/stackoverflow.com/questions/3255697/using-c-sharp-reflection-to-call-a-constructor>>https://stackoverflow.com/questions/3255697/using-c-sharp-reflection-to-call-a-constructor]] | ||
| 9 | |||
| 10 | Invoke method by MethodInfo | ||
| 11 | [[https:~~/~~/stackoverflow.com/questions/919826/invoke-method-by-methodinfo>>https://stackoverflow.com/questions/919826/invoke-method-by-methodinfo]] | ||
| 12 | ))) | ||
| 13 | |(% style="width:174px" %)Получение типа независимо от nullable|(% style="width:1348px" %){{code language="c#"}}PropertyInfo prop; | ||
| 14 | var type = Nullable.GetUnderlyingType(prop.PropertyType) | ||
| 15 | ?? prop.PropertyType;{{/code}} | ||
| 16 | |||
| 17 |