System.Reflection.Assembly.GetTypeNum()

Here are the examples of the csharp api System.Reflection.Assembly.GetTypeNum() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : Assembly.cs
with MIT License
from GrapeCity

internal static Type GetType(int index)
        {
            if (index < 0) return null;
            if (Types == null)
            {
                int n = GetTypeNum();
                if (n <= 0) return null;
                Types = new NativeArray(n);
                ArrayTypes = new NativeArray();
            }
            Type type = (Type)Types[index];
            if (type == null)
            {
                type = new Type();
                InitType(type, index);
                type.index = index;
                Types[index] = type;
                if (type.IsArray)
                    ArrayTypes.push(type);
            }
            return type;
        }