且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在C#中向COM对象添加功能?

更新时间:2023-02-09 14:48:49

听起来像扩展方法

public static class ComAutoExtensions
{
    public static short Method1( this ComAuto com, object param )
    {
        return com.GetShortValue( param );
    }
}