Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SwitchLevelAttribute.cs
Go to the documentation of this file.
2
3namespace System.Diagnostics;
4
5[AttributeUsage(AttributeTargets.Class)]
6public sealed class SwitchLevelAttribute : Attribute
7{
8 private Type _type;
9
11 {
12 get
13 {
14 return _type;
15 }
16 [MemberNotNull("_type")]
17 set
18 {
19 if (value == null)
20 {
21 throw new ArgumentNullException("value");
22 }
23 _type = value;
24 }
25 }
26
27 public SwitchLevelAttribute(Type switchLevelType)
28 {
29 SwitchLevelType = switchLevelType;
30 }
31}