1- what is the the difference between const and readonly in C#?
•const fields has to be initialized while declaration only, while readonly fields can be initialized at declaration or in the constructor.
•const variables can declared in methods ,while readonly fields cannot be declared in methods.
•const fields cannot be used with static modifier, while readonly fields can be used with static modifier.
2- What is Boxing in C#?
•converting a value type to the reference type.
3- what is an Assembly?what is its type?
ليست هناك تعليقات:
إرسال تعليق