Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TypeInitializationException.cs
Go to the documentation of this file.
3
4namespace System;
5
7[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 private readonly string _typeName;
11
12 public string TypeName => _typeName ?? string.Empty;
13
15 : base(SR.TypeInitialization_Default)
16 {
17 base.HResult = -2146233036;
18 }
19
24
25 internal TypeInitializationException(string message)
26 : base(message)
27 {
28 base.HResult = -2146233036;
29 }
30
32 : base(message, innerException)
33 {
35 base.HResult = -2146233036;
36 }
37
39 : base(info, context)
40 {
41 _typeName = info.GetString("TypeName");
42 }
43
45 {
46 base.GetObjectData(info, context);
47 info.AddValue("TypeName", TypeName, typeof(string));
48 }
49}
Definition SR.cs:7
override void GetObjectData(SerializationInfo info, StreamingContext context)
TypeInitializationException(SerializationInfo info, StreamingContext context)
TypeInitializationException(string fullTypeName, string message, Exception innerException)
TypeInitializationException(string? fullTypeName, Exception? innerException)