BadScript 2
Loading...
Searching...
No Matches
ResourceFakes.cs
Go to the documentation of this file.
2{
3 public static class StaticResource
4 {
5 public static string HelpText { get { return "Localized HelpText"; } }
6 public static TypeWithImplicitCast ImplicitCastHelpText => new TypeWithImplicitCast("Localized HelpText");
7 public static TypeWithExplicitCast ExplicitCastHelpText => new TypeWithExplicitCast("Localized HelpText");
10 }
11
12 public class NonStaticResource
13 {
14 public static string HelpText { get { return "Localized HelpText"; } }
15 public static string WriteOnlyText { set { value?.ToString(); } }
16 private static string PrivateHelpText { get { return "Localized HelpText"; } }
17 public static TypeWithImplicitCast ImplicitCastHelpText => new TypeWithImplicitCast("Localized HelpText");
18 public static TypeWithExplicitCast ExplicitCastHelpText => new TypeWithExplicitCast("Localized HelpText");
21 }
22
24 {
25 public string HelpText { get { return "Localized HelpText"; } }
26 }
27
28 internal class InternalResource
29 {
30 public static string HelpText { get { return "Localized HelpText"; } }
31 }
32
34 {
35 private string value;
36
38 {
39 this.value = value;
40 }
41
42 public static implicit operator string(TypeWithImplicitCast obj)
43 {
44 return obj.value;
45 }
46
47 public static implicit operator int(TypeWithImplicitCast obj)
48 {
49 return 0;
50 }
51 }
52
54 {
55 public static implicit operator int(TypeWithWrongImplicitCast obj)
56 {
57 return 0;
58 }
59 }
60
62 {
63 private string value;
64
66 {
67 this.value = value;
68 }
69
70 public static explicit operator string(TypeWithExplicitCast obj)
71 {
72 return obj.value;
73 }
74
75 public static explicit operator int(TypeWithExplicitCast obj)
76 {
77 return 0;
78 }
79 }
80
82 {
83 public static explicit operator int(TypeWithWrongExplicitCast obj)
84 {
85 return 0;
86 }
87 }
88}
static TypeWithExplicitCast ExplicitCastHelpText
static TypeWithWrongExplicitCast WrongExplicitCastHelpText
static TypeWithImplicitCast ImplicitCastHelpText
static TypeWithWrongImplicitCast WrongImplicitCastHelpText
static TypeWithImplicitCast ImplicitCastHelpText
static TypeWithWrongExplicitCast WrongExplicitCastHelpText
static TypeWithExplicitCast ExplicitCastHelpText
static TypeWithWrongImplicitCast WrongImplicitCastHelpText