سلام بر برنامه نویسان عزیز 😉 در این مطلب آموزش Generic Method Reflection در #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد Generic Method Reflection در #C :
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Reflection;
class GenericMethodReflection
{
public static void PrintTypeParameter<T>()
{
Console.WriteLine (typeof(T));
}
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Reflection;
class GenericMethodReflection
{
public static void PrintTypeParameter<T>()
{
Console.WriteLine (typeof(T));
}