Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement