当前位置: 首页>>代码示例>>C#>>正文


C# IDebugEvent2.GetType方法代码示例

本文整理汇总了C#中IDebugEvent2.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# IDebugEvent2.GetType方法的具体用法?C# IDebugEvent2.GetType怎么用?C# IDebugEvent2.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IDebugEvent2的用法示例。


在下文中一共展示了IDebugEvent2.GetType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Send

        internal void Send(IDebugEvent2 eventObject, string iidEvent, IDebugProgram2 program, IDebugThread2 thread) {
            LiveLogger.WriteLine("AD7Engine Event: {0} ({1})", eventObject.GetType(), iidEvent);

            // Check that events was not disposed
            var events = _events;
            if (events == null) {
                return;
            }

            uint attributes;
            var riidEvent = new Guid(iidEvent);

            EngineUtils.RequireOk(eventObject.GetAttributes(out attributes));

            if ((attributes & (uint)enum_EVENTATTRIBUTES.EVENT_STOPPING) != 0 && thread == null) {
                Debug.Fail("A thread must be provided for a stopping event");
                return;
            }

            try {
                EngineUtils.RequireOk(events.Event(this, null, program, thread, eventObject, ref riidEvent, attributes));
            } catch (InvalidCastException) {
                // COM object has gone away
            }
        }
开发者ID:chanchaldabriya,项目名称:nodejstools,代码行数:25,代码来源:AD7Engine.cs

示例2: Send

        internal void Send(IDebugEvent2 eventObject, string iidEvent, IDebugProgram2 program)
        {
            uint attributes;
            Guid riidEvent = new Guid(iidEvent);

            EngineUtils.RequireOk(eventObject.GetAttributes(out attributes));

            Debug.WriteLine(string.Format("Sending Event: {0} {1}", eventObject.GetType(), iidEvent));
            try
            {
                EngineUtils.RequireOk(events.Event(this, debugProcess, this, debugThread, eventObject, ref riidEvent, attributes));
            }
            catch (InvalidCastException)
            {
                // COM object has gone away
            }
        }
开发者ID:e42s,项目名称:VSLua,代码行数:17,代码来源:AD7Engine.cs

示例3: Send

 public void Send(IDebugEvent2 eventObject, IDebugProgram2 program, IDebugThread2 thread)
 {
     uint attributes;
     var riidEvent = eventObject.GetType().GUID;
     EngineUtils.RequireOk(eventObject.GetAttributes(out attributes));
     EngineUtils.RequireOk(m_ad7Callback.Event(m_engine, null, program, thread, eventObject, ref riidEvent, attributes));
 }
开发者ID:bagobor,项目名称:NodeVsDebugger,代码行数:7,代码来源:EngineCallback.cs


注:本文中的IDebugEvent2.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。