repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
test-387.cs
blob
680a35523cd9fa3b7de174ce983da8739e71f8ef
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