IKVM.Reflection.Type.GetElementType C# (CSharp) Method

GetElementType() public method

public GetElementType ( ) : Type
return Type
        public virtual Type GetElementType()
        {
            return null;
        }

Usage Example

 public static string GetParameterTypeName(Type t)
 {
     if (t.IsArray)
     {
         return(t.GetElementType().Name + "Array");
     }
     if (t.IsByRef)
     {
         return(t.GetElementType().Name + "Ref");
     }
     if (!ObjCTypeToMethodName.TryGetValue(GetTypeName(t), out string name))
     {
         name = t.Name;
     }
     return(name);
 }
All Usage Examples Of IKVM.Reflection.Type::GetElementType