Exemplo n.º 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>();
        }
Exemplo n.º 2
0
 public HaveManyGenericTypesClosed(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
Exemplo n.º 3
0
 public void Set(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
Exemplo n.º 4
0
 public HaveManyGenericTypesClosed(GenericB t2Value, GenericA t1Value)
 {
     PropT2 = t2Value;
     PropT1 = t1Value;
 }
Exemplo n.º 5
0
 public HaveManyGenericTypesClosed(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
Exemplo n.º 6
0
 public void Set(GenericA t1Value)
 {
     PropT1 = t1Value;
 }
Exemplo n.º 7
0
 public HaveManyGenericTypesClosed(GenericB t2Value, GenericA t1Value)
 {
     PropT2 = t2Value;
     PropT1 = t1Value;
 }