repo.or.cz
/
geany-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add `--enable-html-docs` to distcheck flags
[geany-mirror.git]
/
tests
/
ctags
/
keyword_public.cs
blob
e954678d3254d2d1ae972093f14a1fa27a9c8ffd
1
// protected_public.cs
2
// Public access
3
using
System
;
4
class
MyClass1
5
{
6
public int
x
;
7
public int
y
;
8
}
9
10
class
MyClass2
11
{
12
public static void
Main
()
13
{
14
MyClass1 mC
=
new
MyClass1
();
15
16
// Direct access to public members:
17
mC
.
x
=
10
;
18
mC
.
y
=
15
;
19
Console
.
WriteLine
(
"x =
{0}
, y =
{1}
"
,
mC
.
x
,
mC
.
y
);
20
}
21
}