Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PrivilegeNotHeldException.cs
Go to the documentation of this file.
3
5
7[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
9{
10 private readonly string _privilegeName;
11
12 public string? PrivilegeName => _privilegeName;
13
15 : base(System.SR.PrivilegeNotHeld_Default)
16 {
17 }
18
20 : base(System.SR.Format(System.SR.PrivilegeNotHeld_Named, privilege))
21 {
23 }
24
26 : base(System.SR.Format(System.SR.PrivilegeNotHeld_Named, privilege), inner)
27 {
29 }
30
32 : base(info, context)
33 {
34 _privilegeName = info.GetString("PrivilegeName");
35 }
36
38 {
39 base.GetObjectData(info, context);
40 info.AddValue("PrivilegeName", _privilegeName, typeof(string));
41 }
42}
Definition SR.cs:7
PrivilegeNotHeldException(SerializationInfo info, StreamingContext context)
override void GetObjectData(SerializationInfo info, StreamingContext context)