Exemple #1
0
 private static global::System.Type getTypeParameter(java.lang.Class clazz)
 {
     global::System.Type superclass = clazz.getGenericSuperclass();
     if (superclass is java.lang.Class)
     {
         throw new System.Exception("Missing type parameter.");
     }
     return(typeof(java.lang.reflect.ParameterizedType
                   ).cast(superclass).getActualTypeArguments()[0]);
 }