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
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs0619-53.cs
blob
1cfd2de040f6789cbd81e508f48f6e83d1bb760c
1
// CS0619: `C.explicit operator byte(C)' is obsolete: `gg'
2
// Line: 17
3
4
using
System
;
5
6
class
C
7
{
8
[
Obsolete
(
"gg"
,
true
)]
9
public static explicit operator byte
(
C x
)
10
{
11
return
1
;
12
}
13
14
static void
Main
()
15
{
16
C x
=
null
;
17
var
y
= (
int
)
x
;
18
}
19
}