Exemplo n.º 1
0
        // *** END GENERATED CODE ***

        #else

        #endif

        static IEnumerable<TypeName> GetTypeNames(string[] namespaces, string[][] types)
        {
            Debug.Assert(namespaces.Length == types.Length);

            for (int i = 0; i < namespaces.Length; i++) {
                for (int j = 0; j < types[i].Length; j++) {
                    TypeName typeName = new TypeName(namespaces[i], types[i][j]);
                    yield return typeName;
                }
            }
        }
Exemplo n.º 2
0
 static IEnumerable<TypeName> GetTypeNames(Type[] types) {
     foreach (Type t in types) {
         if (t.IsNested()) continue;
         TypeName typeName = new TypeName(t);
         yield return typeName;
     }
 }