Пример #1
0
 public TypeRequirement(Type t, NS ns)
 {
     type = t; //set the type
     findReq(); //find types that it depends on
     foreach (Type req in requirements) //add the import declarations for each requirement to my namespace
     {
         if ((req.Namespace != null) && (req.Namespace != type.Namespace) && (!Generator.isPrimitive(req)) && req.IsVisible)
             ns.getCreateDImport(req.Namespace);
     }
 }