Get Underlying Type - CSharp System.Reflection

CSharp examples for System.Reflection:Type

Description

Get Underlying Type

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Runtime.Serialization;
using System.Runtime.CompilerServices;
using System.Reflection.Emit;
using System.Reflection;
using System.Linq;
using System.IO;/*from w  w  w .  j  a va2s .co m*/
using System.Globalization;
using System.Collections.Generic;
using System;

public class Main{
        public static Type GetUnderlyingType(this Type t)
        {
            return Nullable.GetUnderlyingType(t);
        }
}

Related Tutorials