projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-387.cs
1
public struct ObjectID {
2
long l;
3
4
public ObjectID (long l)
5
{
6
this.l = l;
7
}
8
9
public static implicit operator long (ObjectID p)
10
{
11
return p.l;
12
}
13
14
public static implicit operator ObjectID (long l)
15
{
16
return new ObjectID (l);
17
}
18
19
static void Main ()
20
{
21
ObjectID x = new ObjectID (0);
22
decimal y = x;
23
}
24
}
25