예제 #1
0
 protected override TypeDescriptor GetDescriptor()
 {
     if (descriptor_A == null)
     {
         lock (_locker) {
             if (descriptor_A == null)
             {
                 descriptor_A = new TypeDescriptor(base.GetDescriptor(), sizeof(FixedPart_A), new FactoryTypeIdentifier(100, 1), typeof(MyClasse_A));
                 NAME         = descriptor_A.AddArray(new ArrayDescriptor <char>());
                 POWERS       = descriptor_A.AddArray(new ArrayDescriptor <int>());
             }
         }
     }
     return(descriptor_A);
 }
예제 #2
0
 protected override TypeDescriptor GetDescriptor()
 {
     if (descriptor_B == null)
     {
         lock (_locker) {
             if (descriptor_B == null)
             {
                 descriptor_B = new TypeDescriptor(base.GetDescriptor(), sizeof(FixedPart_B), new FactoryTypeIdentifier(200, 1), typeof(MyClasse_B));
                 CITY         = descriptor_B.AddArray(new ArrayDescriptor <char>());
             }
         }
     }
     return(descriptor_B);
 }