-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMyNamespaceSupportForCSharp.cs
59 lines (49 loc) · 1.25 KB
/
MyNamespaceSupportForCSharp.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Microsoft.VisualBasic.ApplicationServices;
using Microsoft.VisualBasic.CompilerServices;
using Microsoft.VisualBasic.Devices;
// This file was created by the VB to C# converter (SharpDevelop 4.4.2.9749).
// It contains classes for supporting the VB "My" namespace in C#.
// If the VB application does not use the "My" namespace, or if you removed the usage
// after the conversion to C#, you can delete this file.
namespace My
{
sealed partial class MyProject
{
[ThreadStatic] static MyApplication application;
public static MyApplication Application {
[DebuggerStepThrough]
get {
if (application == null)
application = new MyApplication();
return application;
}
}
[ThreadStatic] static MyComputer computer;
public static MyComputer Computer {
[DebuggerStepThrough]
get {
if (computer == null)
computer = new MyComputer();
return computer;
}
}
[ThreadStatic] static User user;
public static User User {
[DebuggerStepThrough]
get {
if (user == null)
user = new User();
return user;
}
}
}
partial class MyApplication : ApplicationBase
{
}
partial class MyComputer : Computer
{
}
}