Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
readonly is not final
a guest
Jun 1st, 2012
1,146
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C#
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
void
Main
(
)
{
Console
.
WriteLine
(
new
Foo
(
)
.
val
)
;
//output: 2
}
class
Foo
{
public
readonly
int
val
=
1
;
public
Foo
(
)
{
this
.
val
=
2
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Instant Profits Method
CSS | 3 min ago | 0.67 KB
+12,000$ in 2 days
CSS | 4 min ago | 0.67 KB
Get $12,000 from this mehtod
CSS | 5 min ago | 0.86 KB
Easiest method for beginners
CSS | 11 min ago | 0.67 KB
BTC SWAP GLITCH
CSS | 11 min ago | 0.67 KB
✅ +12,000$ in 2 days
CSS | 12 min ago | 0.86 KB
Crypto is in danger
CSS | 17 min ago | 0.67 KB
This is how to get a Lambo
CSS | 17 min ago | 0.67 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!