Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / InteropServices / TCEAdapterGen / EventItfInfo.cs / 1 / EventItfInfo.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.InteropServices.TCEAdapterGen { using System; using System.Reflection; using System.Reflection.Emit; using System.Collections; internal class EventItfInfo { public EventItfInfo(String strEventItfName, String strSrcItfName, String strEventProviderName, Assembly asmImport, Assembly asmSrcItf) { m_strEventItfName = strEventItfName; m_strSrcItfName = strSrcItfName; m_strEventProviderName = strEventProviderName; m_asmImport = asmImport; m_asmSrcItf = asmSrcItf; } public Type GetEventItfType() { Type t = m_asmImport.GetType(m_strEventItfName, true, false); if (t != null && !t.IsVisible) t = null; return t; } public Type GetSrcItfType() { Type t = m_asmSrcItf.GetType(m_strSrcItfName, true, false); if (t != null && !t.IsVisible) t = null; return t; } public String GetEventProviderName() { return m_strEventProviderName; } private String m_strEventItfName; private String m_strSrcItfName; private String m_strEventProviderName; private Assembly m_asmImport; private Assembly m_asmSrcItf; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.InteropServices.TCEAdapterGen { using System; using System.Reflection; using System.Reflection.Emit; using System.Collections; internal class EventItfInfo { public EventItfInfo(String strEventItfName, String strSrcItfName, String strEventProviderName, Assembly asmImport, Assembly asmSrcItf) { m_strEventItfName = strEventItfName; m_strSrcItfName = strSrcItfName; m_strEventProviderName = strEventProviderName; m_asmImport = asmImport; m_asmSrcItf = asmSrcItf; } public Type GetEventItfType() { Type t = m_asmImport.GetType(m_strEventItfName, true, false); if (t != null && !t.IsVisible) t = null; return t; } public Type GetSrcItfType() { Type t = m_asmSrcItf.GetType(m_strSrcItfName, true, false); if (t != null && !t.IsVisible) t = null; return t; } public String GetEventProviderName() { return m_strEventProviderName; } private String m_strEventItfName; private String m_strSrcItfName; private String m_strEventProviderName; private Assembly m_asmImport; private Assembly m_asmSrcItf; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QilReference.cs
- SafeLocalMemHandle.cs
- sitestring.cs
- ControlType.cs
- oledbconnectionstring.cs
- Model3D.cs
- DetailsViewInsertEventArgs.cs
- NetSectionGroup.cs
- TransformPattern.cs
- WindowsContainer.cs
- SoapServerProtocol.cs
- MultilineStringConverter.cs
- WebServiceErrorEvent.cs
- FolderBrowserDialog.cs
- ConfigsHelper.cs
- XmlDocumentFieldSchema.cs
- PeerApplication.cs
- MemberNameValidator.cs
- TextAutomationPeer.cs
- IItemProperties.cs
- Graphics.cs
- login.cs
- WindowsRichEditRange.cs
- RectAnimationClockResource.cs
- BasePattern.cs
- QilLoop.cs
- InternalConfigEventArgs.cs
- HatchBrush.cs
- PropertyRef.cs
- TagMapInfo.cs
- EventSinkActivityDesigner.cs
- IsolatedStorageException.cs
- OdbcConnectionPoolProviderInfo.cs
- PointConverter.cs
- ErrorFormatterPage.cs
- Table.cs
- Utils.cs
- ToolStripMenuItemDesigner.cs
- ChannelBinding.cs
- WebBrowserBase.cs
- SHA384.cs
- _IPv4Address.cs
- TrackBar.cs
- ResolvePPIDRequest.cs
- QueueProcessor.cs
- EntityDataSourceContainerNameConverter.cs
- TextPatternIdentifiers.cs
- _Events.cs
- Pens.cs
- _RequestCacheProtocol.cs
- CallSiteHelpers.cs
- UncommonField.cs
- TableRow.cs
- TaskHelper.cs
- DBCommand.cs
- NumberFunctions.cs
- DataObjectPastingEventArgs.cs
- BaseUriHelper.cs
- TransformGroup.cs
- FontInfo.cs
- CertificateManager.cs
- DataGridViewColumn.cs
- PropertyValueChangedEvent.cs
- GAC.cs
- BatchStream.cs
- TableColumnCollectionInternal.cs
- CodeGroup.cs
- ColorMatrix.cs
- LinkLabel.cs
- HttpFileCollection.cs
- InputLangChangeEvent.cs
- AutoResetEvent.cs
- AnnotationAuthorChangedEventArgs.cs
- SqlErrorCollection.cs
- RadioButtonStandardAdapter.cs
- ProgressBarRenderer.cs
- DecodeHelper.cs
- InheritablePropertyChangeInfo.cs
- MdiWindowListItemConverter.cs
- ObjectViewListener.cs
- TraceFilter.cs
- TypedTableBaseExtensions.cs
- FontUnit.cs
- Application.cs
- ReaderOutput.cs
- OptimisticConcurrencyException.cs
- FixedPageAutomationPeer.cs
- IdentitySection.cs
- LiteralControl.cs
- TableLayoutStyleCollection.cs
- EditorPart.cs
- DerivedKeySecurityToken.cs
- TrustLevel.cs
- PolyLineSegmentFigureLogic.cs
- TextEditorTyping.cs
- InvalidateEvent.cs
- LayoutDump.cs
- WebPartManager.cs
- CalendarDateRange.cs
- PrivilegeNotHeldException.cs