This question is locked. New answers and comments are not allowed.
Hi,
When I try to compile any ORM enabled projects with the following non persistent class:
public static class S
{
public static InstanceType Random<FilterType, InstanceType>(object ctx)
{
//return default(InstanceType);
return Random<FilterType>().Random<InstanceType>(ctx);
}
public static R RandomOutput<T, R>(object ctx)
{
return default(R);
}
public static Type Random<T>()
{
return null;
}
public static T Random<T>(this Type type, object ctx)
{
return default(T);
}
}
It gives me the following errors:
OpenAccess Error: Index was outside the bounds of the array.
However, if I replace the line
return Random<FilterType>().Random<InstanceType>(ctx);
with
return default(InstanceType);
It compiles without any errors.
Please help
Thanks.