接口IMyInterface中只包含一個屬性MyName.該屬性滿足:
公有
可讀可寫
字符串類刑
則該接口的定義應(yīng)為()
A.interface MyInterface{string MyName{get;set;}}
B.interface MyInterface{int MyName{get;set;}}
C.interface MyInterface{string MyName{get{}set{}}
D.interface MyInterface{string MyName{get{};set{};}