Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GridViewCommandEventArgs.cs
- CollectionEditorDialog.cs
- MsiStyleLogWriter.cs
- SafeNativeMethods.cs
- ProfessionalColorTable.cs
- ApplicationServiceHelper.cs
- DataSourceHelper.cs
- XmlSchemaNotation.cs
- ListViewGroup.cs
- BitmapSourceSafeMILHandle.cs
- InvalidComObjectException.cs
- DeploymentExceptionMapper.cs
- XPathArrayIterator.cs
- ToggleProviderWrapper.cs
- NavigateEvent.cs
- ClientSideQueueItem.cs
- RuntimeConfig.cs
- CommunicationException.cs
- TypefaceMetricsCache.cs
- RadioButtonList.cs
- _SSPISessionCache.cs
- EntitySetBaseCollection.cs
- OutputScopeManager.cs
- TabItemWrapperAutomationPeer.cs
- HeaderedContentControl.cs
- OleDbConnection.cs
- EventBookmark.cs
- MemoryStream.cs
- CrossContextChannel.cs
- ServicePointManager.cs
- BitmapCodecInfoInternal.cs
- CommandLibraryHelper.cs
- ToolStripButton.cs
- RoleBoolean.cs
- ProtocolsConfigurationHandler.cs
- SchemaMerger.cs
- XmlCustomFormatter.cs
- OletxEnlistment.cs
- DataBoundLiteralControl.cs
- OpenTypeLayout.cs
- Membership.cs
- Glyph.cs
- EventEntry.cs
- ManagementPath.cs
- GeneratedCodeAttribute.cs
- XmlCountingReader.cs
- SystemColorTracker.cs
- ItemsChangedEventArgs.cs
- ResourceProviderFactory.cs
- TrackingQueryElement.cs
- ActivationServices.cs
- BuildResultCache.cs
- WebRequestModuleElement.cs
- BindToObject.cs
- DbConvert.cs
- ObservableCollection.cs
- GeneralTransformGroup.cs
- _WebProxyDataBuilder.cs
- StringFreezingAttribute.cs
- EventLogPermissionEntry.cs
- FilterQuery.cs
- BuildProviderCollection.cs
- Enum.cs
- DataGridViewColumnHeaderCell.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Environment.cs
- InheritablePropertyChangeInfo.cs
- ContentPosition.cs
- EncodingNLS.cs
- ConnectionManagementSection.cs
- MapPathBasedVirtualPathProvider.cs
- PageEventArgs.cs
- Control.cs
- UITypeEditor.cs
- PackagingUtilities.cs
- SplineQuaternionKeyFrame.cs
- ProxyGenerator.cs
- PerformanceCounterCategory.cs
- PriorityQueue.cs
- BaseCodePageEncoding.cs
- ErrorWebPart.cs
- Brush.cs
- AutomationTextAttribute.cs
- ColumnResizeUndoUnit.cs
- RegistryKey.cs
- SupportingTokenListenerFactory.cs
- ConfigurationManagerHelperFactory.cs
- DataControlPagerLinkButton.cs
- BadImageFormatException.cs
- ReferentialConstraintRoleElement.cs
- DragEventArgs.cs
- CommonGetThemePartSize.cs
- UnmanagedMemoryStreamWrapper.cs
- OptionalColumn.cs
- VectorAnimation.cs
- TrailingSpaceComparer.cs
- CodeTypeParameter.cs
- XmlNamedNodeMap.cs
- COM2TypeInfoProcessor.cs
- NamedPipeConnectionPoolSettings.cs