repo.or.cz
/
mono-debugger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git]
/
mono
/
tests
/
cas
/
appdomain
/
whoami.cs
blob
a89489c5772a67081834b38f5433e27b5fc1ed8b
1
using
System
;
2
using
System
.
Security
;
3
4
class
Program
{
5
6
static int
Main
(
string
[]
args
)
7
{
8
try
{
9
Console
.
WriteLine
(
Environment
.
UserName
);
10
return
0
;
11
}
12
catch
(
SecurityException se
) {
13
Console
.
WriteLine
(
"---
{0}{1}{0}
---"
,
Environment
.
NewLine
,
se
);
14
return
1
;
15
}
16
}
17
}