Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();

            //创建简单对象
            HelloSimpleObjectClass helloSpObj = new HelloSimpleObjectClass();

            //加法方法测试
            int iSum = helloSpObj.SumLong(9, 99);

            //读描述属性
            String strA = helloSpObj.Description;
            
            //写描述属性
            helloSpObj.Description = "我在C#中运行,我是新的描述属性!";

            //读描述属性
            String strB = helloSpObj.Description;
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            //创建简单对象
            HelloSimpleObjectClass helloSpObj = new HelloSimpleObjectClass();

            //加法方法测试
            int iSum = helloSpObj.SumLong(9, 99);

            //读描述属性
            String strA = helloSpObj.Description;

            //写描述属性
            helloSpObj.Description = "我在C#中运行,我是新的描述属性!";

            //读描述属性
            String strB = helloSpObj.Description;
        }