static void Main(string[] args) { CParameter <int> ints = new CParameter <int>(); CParameter <long> longs = new CParameter <long>(); CInformation info = new CInformation(); info.AddParameter(ints); info.AddParameter(longs); CParameter <int> ints2 = info.GetParameter <int>(); }
static void Main(string[] args) { CParameter <int> ints = new CParameter <int>(); CParameter <long> longs = new CParameter <long>(); CInformation info = new CInformation(); info.AddParameter(ints); info.AddParameter(longs); CParameter <int> ints2 = info.GetParameter <int>(); // ints2 and ints will both refer to the same CParameter instance. }