Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic;
- using System.Text;
- namespace CsharpCourse
- {
- internal class Program
- {
- // Constant
- // Must assign value
- // value can not be changed
- // Compile Time Constant: the application replace it with the constant value
- public const string Message = "hello";
- // Read-only
- // can only be changed into the constructor [ several times ]
- // Run Time Constant
- public readonly string _message;
- public Program()
- {
- _message = "Hello";
- }
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement