Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyClass
- {
- public const int _myCustomConstField = 1;
- public readonly int _myCustomReadOnlyField = 1
- public MyClass()
- {
- _myCustomConstField = 2; // Invalid statement
- _myCustomReadOnlyField = 2; // Valid statement
- }
- }
Add Comment
Please, Sign In to add comment