Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UseReflectionToGetType()

Type System.Resources.ResourceReader.UseReflectionToGetType ( int typeIndex)
inlineprivate

Definition at line 985 of file ResourceReader.cs.

986 {
987 long position = _store.BaseStream.Position;
988 try
989 {
990 _store.BaseStream.Position = _typeNamePositions[typeIndex];
991 string typeName = _store.ReadString();
993 return _typeTable[typeIndex];
994 }
996 {
997 throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization);
998 }
999 finally
1000 {
1001 _store.BaseStream.Position = position;
1002 }
1003 }
virtual string ReadString()
virtual Stream BaseStream
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
Definition Type.cs:408

References System.Resources.ResourceReader._store, System.Resources.ResourceReader._typeNamePositions, System.Resources.ResourceReader._typeTable, System.IO.BinaryReader.BaseStream, System.Type.GetType(), System.SR.NotSupported_ResourceObjectSerialization, and System.IO.BinaryReader.ReadString().

Referenced by System.Resources.ResourceReader.FindType().