Fan.Sys.Pod.types C# (CSharp) Méthode

types() public méthode

public types ( ) : List
Résultat List
        public List types()
        {
            return new List(Sys.TypeType, m_types);
        }

Usage Example

Exemple #1
0
        private Type[] tests(Pod pod, string testName)
        {
            // named test
              if (testName != "*") return new Type[] { pod.type(testName, true) };

              // all types which subclass Test
              List all = pod.types();
              ArrayList acc = new ArrayList();
              for (int i=0; i<all.sz(); i++)
              {
            Type x = (Type)all.get(i);
            if (x.@is(Sys.TestType) && !x.isAbstract()) acc.Add(x);
              }
              return (Type[])acc.ToArray(System.Type.GetType("Fan.Sys.Type"));
        }