using System;
public class Example<T>{
public Example(T myProperty){
MyProperty = myProperty;
}
public T MyProperty { get; set; }
public class Program
{
public static void Main()
var example = new Example<string>("dd");
Console.WriteLine(example.MyProperty);
var example2 = new Example<int>(22);
Console.WriteLine(example2.MyProperty);