Previously, I could use this to get common types in a class;
typeof(MyClass).GetTypeInfo().DeclaredProperties.Any(p => p.PropertyType.IsGenericType)
However, in DNX Core 5.0 is IsGenericTypenot supported. What can i use now?
IsGenericType
I just looked at the source, confirming that the IsGenericType property is still in the structure.
https://github.com/aspnet/Common/blob/dev/src/Microsoft.Framework.ClosedGenericMatcher.Sources/ClosedGenericMatcher.cs#L44
Is the following being done?
typeof(MyClass).GetTypeInfo().DeclaredProperties.Any(p => p.PropertyType.GetTypeInfo().IsGenericType)
Source: https://habr.com/ru/post/1607753/More articles:WPF / XAML How to specify the assembly to load the resource? - c #Transferring .config file to AWS Elastic Beanstalk - yamlJQuery autocomplete filling with PHP array - javascriptThe last line in the shortcut for the cell is not displayed with the automatic location and dynamic height of the cell - iosRuby http Получить возвращаемый усеченный ответ - httprunning code with iplots library fails in RStudio - javaПолучение данных о сердечном ритме Fitbit с помощью Python - pythonAssigning elements from a returned array, where the index is 1 or higher - javascriptHow to fix recovery of purchase in iOS application using Xcode 7 and SpriteKit in Swift? - swift2Inheriting the same method from multiple interfaces - inheritanceAll Articles