[英]How can I create properties in Visual studio 2010 ultimate modeling project?
I want to create properties in class. 我想在课堂上创建属性。 Where can I create them in attributes or operations? 在哪里可以在属性或操作中创建它们?
I want to create get only property like 我想创建仅获取属性
string MyString { get; }
Thanks, Omkar 谢谢,Omkar
attributes == properties 属性==属性
operations == methods 操作==方法
For a read only property select the clas diagram and, in the properties window, change "Is Read Only" to true. 对于只读属性,请选择分类图,然后在属性窗口中将“是只读”更改为true。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.