-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathAssignments.cs
More file actions
46 lines (38 loc) · 849 Bytes
/
Assignments.cs
File metadata and controls
46 lines (38 loc) · 849 Bytes
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
class Assignments
{
void M()
{
int x = 0;
x += 1;
dynamic d = 0;
d -= 2;
var a = new Assignments();
a += this;
Event += (sender, e) => { };
}
public static Assignments operator +(Assignments x, Assignments y)
{
return x;
}
delegate void EventHandler(object sender, object e);
event EventHandler Event;
int IntField;
string StringField;
void SetParamSingle(out int x)
{
x = 42;
}
void SetParamMulti(out int x, object o, out string y)
{
x = 42;
y = "Hello";
}
void M2()
{
int x1;
SetParamSingle(out x1);
SetParamSingle(out IntField);
SetParamMulti(out var y, null, out StringField);
SetParamMulti(out IntField, null, out StringField);
}
}