首页 > 代码库 > dsf

dsf

 [ComVisible(true)]    [ClassInterface(ClassInterfaceType.AutoDual)]    [ProgId("HelloWorld.MyClass")] //类名    public class MyClass    {        public string UserName { get; set; } //对外提供属性        public string SayHello(string content) //对外提供方法        {            return "用户:" + this.UserName  + "说:" + content;        }    }

dsf