public static IsStronglyTypedListDataSource ( this bodyDataSource ) : bool | ||
bodyDataSource | this | data source |
리턴 | bool |
public static bool IsStronglyTypedListDataSource(this IDataSource bodyDataSource)
{
var baseType = bodyDataSource.GetType();
if (!baseType.IsGenericType) return false;
return baseType.GetGenericTypeDefinition() == typeof(StronglyTypedListDataSource<>);
}