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
[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git]
/
mcs
/
tests
/
test-471.cs
blob
771a8e95be6a4c79a0234c24152b32980ea6277e
1
using
System
;
2
3
class
AAttribute
:
Attribute
4
{
5
public string
Value
;
6
7
public
AAttribute
(
string
s
)
8
{
9
Value
=
s
;
10
}
11
}
12
13
[
A
(
value
)]
14
class
MainClass
15
{
16
const string value
=
null
;
17
18
public static int
Main
()
19
{
20
var
attr
=
typeof
(
MainClass
).
GetCustomAttributes
(
false
) [
0
]
as
AAttribute
;
21
if
(
attr
.
Value
!=
null
)
22
return
1
;
23
24
return
0
;
25
}
26
}