摘要:
Similarities1.Both contain code to be executed2. Both can be used to hide implementation details3. Both can be virtual, abstract, or override Differences1. Syntactic – properties do not use parenthese... 阅读全文
摘要:
using Methods 1.Reduce clarity 2.Increase risk of errors,both syntactic and semanticuisng Operator makes expression cleatExample: MyIntVar1=MyIntVar2+MyIntVar3 (Operator)... 阅读全文
摘要:
Struct Constructor RestrictionsAlthough the syntax for struct and class constructors is the same, there are someadditional restrictions that apply to struct constructors:1. The compiler always create... 阅读全文