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
- DataSourceIDConverter.cs
- ColumnHeaderCollectionEditor.cs
- precedingquery.cs
- PageSetupDialog.cs
- DiscoveryReference.cs
- AxImporter.cs
- _CacheStreams.cs
- XmlMemberMapping.cs
- ColorContextHelper.cs
- ToolStripContainer.cs
- ResourceCategoryAttribute.cs
- XPathNodeIterator.cs
- OptimalTextSource.cs
- GPStream.cs
- UserControl.cs
- WorkerRequest.cs
- RestHandlerFactory.cs
- InputScopeManager.cs
- ExpressionBuilder.cs
- ProfileEventArgs.cs
- RepeaterCommandEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- KeyboardNavigation.cs
- ItemContainerGenerator.cs
- HttpWriter.cs
- SmtpNtlmAuthenticationModule.cs
- VolatileResourceManager.cs
- CacheVirtualItemsEvent.cs
- storepermissionattribute.cs
- PtsContext.cs
- OleDbConnectionFactory.cs
- Solver.cs
- CredentialCache.cs
- ReadOnlyDictionary.cs
- TaskFileService.cs
- PeerContact.cs
- RtfToXamlReader.cs
- GPStream.cs
- WriteTimeStream.cs
- UIElementPropertyUndoUnit.cs
- QilList.cs
- Single.cs
- RSAProtectedConfigurationProvider.cs
- ISAPIRuntime.cs
- WizardPanelChangingEventArgs.cs
- HostedTcpTransportManager.cs
- TreeNodeBinding.cs
- documentsequencetextview.cs
- KeySplineConverter.cs
- _WebProxyDataBuilder.cs
- CrossContextChannel.cs
- CodeNamespace.cs
- XmlMembersMapping.cs
- DataPager.cs
- VectorCollection.cs
- SmtpSection.cs
- PageTheme.cs
- Menu.cs
- RegexRunner.cs
- OdbcDataAdapter.cs
- indexingfiltermarshaler.cs
- TransformerInfo.cs
- recordstatefactory.cs
- IdentifierService.cs
- AnnotationService.cs
- PeerHelpers.cs
- HostAdapter.cs
- ScriptHandlerFactory.cs
- PropertyGrid.cs
- XmlRawWriterWrapper.cs
- ProviderCollection.cs
- FixedTextPointer.cs
- OdbcEnvironment.cs
- HttpModulesSection.cs
- Control.cs
- ChtmlPhoneCallAdapter.cs
- HwndTarget.cs
- EventBuilder.cs
- TraceSection.cs
- ConfigurationStrings.cs
- RewritingValidator.cs
- ValidatingReaderNodeData.cs
- CachedFontFamily.cs
- AlternateViewCollection.cs
- DataBoundLiteralControl.cs
- HttpClientCertificate.cs
- EncoderFallback.cs
- DataAdapter.cs
- SoapUnknownHeader.cs
- PropertySegmentSerializer.cs
- TaskHelper.cs
- MarkupExtensionParser.cs
- AsyncCompletedEventArgs.cs
- XXXInfos.cs
- WindowsTreeView.cs
- ErrorWebPart.cs
- XmlNamespaceMapping.cs
- ContextDataSource.cs
- XmlQueryOutput.cs
- CodeStatement.cs