Horje
c# get list object type of generic list Code Example
c# get list object type of generic list
Type type = pi.PropertyType;
if(type.IsGenericType && type.GetGenericTypeDefinition()
        == typeof(List<>))
{
    Type itemType = type.GetGenericArguments()[0]; // use this...
}




Csharp

Related
c# Returning Strings Code Example c# Returning Strings Code Example
c# split large file into chunks Code Example c# split large file into chunks Code Example
git find commits by message Code Example git find commits by message Code Example
datatable to array c# Code Example datatable to array c# Code Example
Data at the root level is invalid. Line 1, position 1. Code Example Data at the root level is invalid. Line 1, position 1. Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10