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

◆ DeserializeObject()

object System.Resources.ResourceReader.DeserializeObject ( int typeIndex)
inlineprivate

Definition at line 184 of file ResourceReader.cs.

185 {
187 {
188 throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
189 }
191 {
192 throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization);
193 }
195 {
196 throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed);
197 }
200 if (obj.GetType() != type)
201 {
202 throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResType_SerBlobMismatch, type.FullName, obj.GetType().FullName));
203 }
204 return obj;
205 }
virtual Stream BaseStream
static Func< object, Stream, object > s_deserializeMethod
static bool Read(ref bool location)
Definition Volatile.cs:67

References System.Resources.ResourceReader._binaryFormatter, System.Resources.ResourceReader._permitDeserialization, System.Resources.ResourceReader._store, System.Resources.ResourceReader.AllowCustomResourceTypes, System.SR.BadImageFormat_ResType_SerBlobMismatch, System.IO.BinaryReader.BaseStream, System.SR.BinaryFormatter_SerializationDisallowed, System.Resources.ResourceReader.FindType(), System.SR.Format(), System.Resources.ResourceReader.InitializeBinaryFormatter(), System.SR.NotSupported_ResourceObjectSerialization, System.obj, System.Threading.Volatile.Read(), System.SR.ResourceManager_ReflectionNotAllowed, System.Resources.ResourceReader.s_deserializeMethod, and System.type.

Referenced by System.Resources.ResourceReader._LoadObjectV1(), and System.Resources.ResourceReader._LoadObjectV2().