mardi 14 novembre 2017

Create Object From Generic Class using class Name C#

I have a Generic class of T where T is a class i want to create an object from this Generic Class but I have Class name in string this my code

public class GenericClass<T>:IGeneric<T> where T : class
{
    public IEnumerable<T> Get
    {
        //Whatever The Logic Is
    }
}





Aucun commentaire:

Enregistrer un commentaire