csharp generic type converter

Code Example - csharp generic type converter

                
                        yes to f
                    
                
 

convert generic to type csharp

                        
                                (SomeClass)Convert.ChangeType(T, typeof(SomeClass));
                            
                        
 

csharp generic return type in interface

                        
                                public interface IExample
{
  int GetInteger();
  T GetAnything<T>();
}