@@ -6,26 +6,26 @@ namespace Python.Test
6
6
// Supports CLR event unit tests.
7
7
//========================================================================
8
8
9
- public delegate void TestEventHandler ( object sender , TestEventArgs e ) ;
9
+ public delegate void EventHandlerTest ( object sender , EventArgsTest e ) ;
10
10
11
11
12
12
public class EventTest
13
13
{
14
- public static event TestEventHandler PublicStaticEvent ;
14
+ public static event EventHandlerTest PublicStaticEvent ;
15
15
16
- protected static event TestEventHandler ProtectedStaticEvent ;
16
+ protected static event EventHandlerTest ProtectedStaticEvent ;
17
17
18
- internal static event TestEventHandler InternalStaticEvent ;
18
+ internal static event EventHandlerTest InternalStaticEvent ;
19
19
20
- private static event TestEventHandler PrivateStaticEvent ;
20
+ private static event EventHandlerTest PrivateStaticEvent ;
21
21
22
- public event TestEventHandler PublicEvent ;
22
+ public event EventHandlerTest PublicEvent ;
23
23
24
- protected event TestEventHandler ProtectedEvent ;
24
+ protected event EventHandlerTest ProtectedEvent ;
25
25
26
- internal event TestEventHandler InternalEvent ;
26
+ internal event EventHandlerTest InternalEvent ;
27
27
28
- private event TestEventHandler PrivateEvent ;
28
+ private event EventHandlerTest PrivateEvent ;
29
29
30
30
31
31
public static int s_value ;
@@ -42,7 +42,7 @@ static EventTest()
42
42
}
43
43
44
44
45
- public void OnPublicEvent ( TestEventArgs e )
45
+ public void OnPublicEvent ( EventArgsTest e )
46
46
{
47
47
if ( PublicEvent != null )
48
48
{
@@ -51,7 +51,7 @@ public void OnPublicEvent(TestEventArgs e)
51
51
}
52
52
53
53
54
- public void OnProtectedEvent ( TestEventArgs e )
54
+ public void OnProtectedEvent ( EventArgsTest e )
55
55
{
56
56
if ( ProtectedEvent != null )
57
57
{
@@ -60,7 +60,7 @@ public void OnProtectedEvent(TestEventArgs e)
60
60
}
61
61
62
62
63
- public static void OnPublicStaticEvent ( TestEventArgs e )
63
+ public static void OnPublicStaticEvent ( EventArgsTest e )
64
64
{
65
65
if ( PublicStaticEvent != null )
66
66
{
@@ -69,7 +69,7 @@ public static void OnPublicStaticEvent(TestEventArgs e)
69
69
}
70
70
71
71
72
- protected static void OnProtectedStaticEvent ( TestEventArgs e )
72
+ protected static void OnProtectedStaticEvent ( EventArgsTest e )
73
73
{
74
74
if ( ProtectedStaticEvent != null )
75
75
{
@@ -78,12 +78,12 @@ protected static void OnProtectedStaticEvent(TestEventArgs e)
78
78
}
79
79
80
80
81
- public void GenericHandler ( object sender , TestEventArgs e )
81
+ public void GenericHandler ( object sender , EventArgsTest e )
82
82
{
83
83
this . value = e . value ;
84
84
}
85
85
86
- public static void StaticHandler ( object sender , TestEventArgs e )
86
+ public static void StaticHandler ( object sender , EventArgsTest e )
87
87
{
88
88
s_value = e . value ;
89
89
}
@@ -92,7 +92,7 @@ public static void ShutUpCompiler()
92
92
{
93
93
// Quiet compiler warnings.
94
94
EventTest e = new EventTest ( ) ;
95
- TestEventHandler f = new TestEventHandler ( e . GenericHandler ) ;
95
+ EventHandlerTest f = new EventHandlerTest ( e . GenericHandler ) ;
96
96
ProtectedStaticEvent += f ;
97
97
InternalStaticEvent += f ;
98
98
PrivateStaticEvent += f ;
@@ -103,13 +103,13 @@ public static void ShutUpCompiler()
103
103
}
104
104
105
105
106
- public class TestEventArgs : EventArgs
106
+ public class EventArgsTest : EventArgs
107
107
{
108
108
public int value ;
109
109
110
- public TestEventArgs ( int v )
110
+ public EventArgsTest ( int v )
111
111
{
112
112
this . value = v ;
113
113
}
114
114
}
115
- }
115
+ }
0 commit comments