Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RuntimeFeature.cs
Go to the documentation of this file.
2
4
5public static class RuntimeFeature
6{
7 public const string PortablePdb = "PortablePdb";
8
9 public const string DefaultImplementationsOfInterfaces = "DefaultImplementationsOfInterfaces";
10
11 public const string UnmanagedSignatureCallingConvention = "UnmanagedSignatureCallingConvention";
12
13 public const string CovariantReturnsOfClasses = "CovariantReturnsOfClasses";
14
15 [RequiresPreviewFeatures("Generic Math is in preview.", Url = "https://aka.ms/dotnet-warnings/generic-math-preview")]
16 public const string VirtualStaticsInInterfaces = "VirtualStaticsInInterfaces";
17
18 public static bool IsDynamicCodeSupported => true;
19
20 public static bool IsDynamicCodeCompiled => true;
21
22 public static bool IsSupported(string feature)
23 {
24 switch (feature)
25 {
26 case "PortablePdb":
27 case "CovariantReturnsOfClasses":
28 case "UnmanagedSignatureCallingConvention":
29 case "DefaultImplementationsOfInterfaces":
30 case "VirtualStaticsInInterfaces":
31 return true;
32 case "IsDynamicCodeSupported":
34 case "IsDynamicCodeCompiled":
36 default:
37 return false;
38 }
39 }
40}