public static Type MakeGenericType(Type typeDefinition, Type[] typeArguments) { Type genericType = null; if ( typeDefinition != null && typeArguments != null && typeArguments.Length > 0 ) { genericType = typeDefinition.MakeGenericType(typeArguments); } return genericType; }