To get the type of a generic parameter in C# and VB.NET you can use the following snippet.
Sample C#
Type typeParam = typeof(T);
Sample VB.NET
Dim typeParam As Type = GetType(T)
All the Code Snippets and Samples you need
To get the type of a generic parameter in C# and VB.NET you can use the following snippet.
Type typeParam = typeof(T);
Dim typeParam As Type = GetType(T)
You must be logged in to post a comment.
RT @CodeSnippetsNET: Get the type of a generic parameter in C# and #VB .NET http://t.co/2LdKm2B9UQ #csharp #dotnet #codesnippets #programmi…
RT @CodeSnippetsNET: Get the type of a generic parameter in C# and #VB .NET http://t.co/2LdKm2B9UQ #csharp #dotnet #codesnippets #programmi…
RT @CodeSnippetsNET: Get the type of a generic parameter in C# and #VB .NET http://t.co/2LdKm2B9UQ #csharp #dotnet #codesnippets #programmi…