System.Resources.ResourceReader.FindType C# (CSharp) Méthode

FindType() private méthode

private FindType ( int typeIndex ) : Type
typeIndex int
Résultat Type
        private Type FindType(int typeIndex)
        {
            if (_typeTable[typeIndex] == null) {
                long oldPos = _store.BaseStream.Position;
                try {
                    _store.BaseStream.Position = _typeNamePositions[typeIndex];
                    String typeName = _store.ReadString();
                    _typeTable[typeIndex] = Type.GetType(typeName, true);
                }
                finally {
                    _store.BaseStream.Position = oldPos;
                }
            }
            BCLDebug.Assert(_typeTable[typeIndex] != null, "Should have found a type!");
            return _typeTable[typeIndex];
        }