예제 #1
0
        public void Demonstrate()
        {
            Sample s = new Sample();

            s.DoSomething('z');
            s.DoSomething((byte)5);
            s.DoSomething(6.3333d);
            s.DoSomething(777);

            GenericA xa = s.GetSomething <GenericA>();
            GenericB xb = s.GetSomething <GenericB>();
        }
예제 #2
0
 public HaveManyGenericTypesClosed(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
예제 #3
0
 public void Set(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
예제 #4
0
 public HaveManyGenericTypesClosed(GenericB t2Value, GenericA t1Value)
 {
     PropT2 = t2Value;
     PropT1 = t1Value;
 }
예제 #5
0
 public HaveManyGenericTypesClosed(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
예제 #6
0
 public void Set(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
예제 #7
0
 public HaveManyGenericTypesClosed(GenericB t2Value, GenericA t1Value)
 {
     PropT2 = t2Value;
     PropT1 = t1Value;
 }