Ejemplo n.º 1
0
      /// <summary>Add BPL Primitive to the collection.</summary>
      private void addPrimitive(BplPrimitive primitive) {
         
         // Do not include delegate or arrays
         if (primitive.IsDelegate) return;
         if (primitive.IsArray) return;
         if (primitives.Contains(primitive)) return;
         
         primitives.Add(primitive);
         
         string packageName = primitive.GetPackageName();
         getPackage(packageName).Primitives.Add(primitive);

         if (primitive.IsArray || primitive.IsNullable) {
            addPrimitive(primitive.ItemType);
         }
      }