摘要: 接口类[ComImport][SecurityCritical][Guid("00000100-0000-0000-C000-000000000046")][InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]publicinterfaceIEnumUnknown{[PreserveSig][MethodImpl(MethodImplOptions.InternalCall,MethodCodeType=MethodCodeType.Runtime)]intNext([In,MarshalAs(UnmanagedType. 阅读全文
posted @ 2012-09-11 13:42 上林下夕 阅读(937) 评论(0) 推荐(0) 编辑
摘要: C# OPC 实现系列三系统接口IEnumStringC#类实现View Code publicclassDataEnumString:System.Runtime.InteropServices.ComTypes.IEnumString{privatestring[]_sources;privateintcurrent;privateintsize;publicDataEnumString(string[]sources){if(sources!=null)_sources=sources;this.current=0;this.size=(sources==null)?0:_sources 阅读全文
posted @ 2012-09-11 13:39 上林下夕 阅读(1062) 评论(0) 推荐(0) 编辑