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

◆ IsSerializable

virtual bool System.Type.IsSerializable
getinherited

Definition at line 310 of file Type.cs.

311 {
312 get
313 {
314 if ((GetAttributeFlagsImpl() & TypeAttributes.Serializable) != 0)
315 {
316 return true;
317 }
319 if (type.IsRuntimeImplemented())
320 {
321 do
322 {
323 if (type == typeof(Delegate) || type == typeof(Enum))
324 {
325 return true;
326 }
328 }
329 while (type != null);
330 }
331 return false;
332 }
333 }
Type UnderlyingSystemType
Definition Type.cs:61
TypeAttributes GetAttributeFlagsImpl()
Type? BaseType
Definition Type.cs:295

Referenced by System.Runtime.Serialization.Formatters.Binary.ObjectReader.CheckSerializable(), and System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize().