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
- RuntimeEnvironment.cs
- SmiMetaData.cs
- EmptyControlCollection.cs
- ResolveNameEventArgs.cs
- Delegate.cs
- ImageIndexConverter.cs
- UserPreferenceChangedEventArgs.cs
- BufferManager.cs
- MergePropertyDescriptor.cs
- ToolStripPanelSelectionGlyph.cs
- Converter.cs
- DictionaryEntry.cs
- SQLResource.cs
- HScrollProperties.cs
- InfoCard.cs
- DiscreteKeyFrames.cs
- WebUtility.cs
- AppSettingsExpressionBuilder.cs
- MetadataArtifactLoaderResource.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DetailsViewDesigner.cs
- TrackingMemoryStream.cs
- AssemblyCache.cs
- SqlCacheDependency.cs
- MetafileHeaderWmf.cs
- ErrorTableItemStyle.cs
- RuntimeHandles.cs
- HtmlEmptyTagControlBuilder.cs
- SegmentInfo.cs
- UnmanagedHandle.cs
- XmlBoundElement.cs
- MissingSatelliteAssemblyException.cs
- CharKeyFrameCollection.cs
- Matrix3D.cs
- StringDictionaryCodeDomSerializer.cs
- CacheMode.cs
- DataGridViewCellParsingEventArgs.cs
- NumericUpDown.cs
- TableItemStyle.cs
- TableLayoutPanel.cs
- HtmlButton.cs
- MembershipSection.cs
- ProjectionAnalyzer.cs
- SiteMapNodeItemEventArgs.cs
- CodeStatement.cs
- SafeRegistryHandle.cs
- QueueAccessMode.cs
- BindingValueChangedEventArgs.cs
- XPathAxisIterator.cs
- ValidationErrorCollection.cs
- MailWebEventProvider.cs
- HandlerBase.cs
- AncestorChangedEventArgs.cs
- NetworkCredential.cs
- XamlPathDataSerializer.cs
- InfoCardKeyedHashAlgorithm.cs
- DocumentViewer.cs
- Recipient.cs
- SafeTokenHandle.cs
- RequestQueue.cs
- Serializer.cs
- StringConverter.cs
- PropertyNames.cs
- COM2ColorConverter.cs
- SectionInformation.cs
- keycontainerpermission.cs
- NameValueCollection.cs
- XmlReflectionMember.cs
- SecurityCriticalDataForSet.cs
- WebEventCodes.cs
- SynchronizedInputHelper.cs
- IISMapPath.cs
- AttributeEmitter.cs
- ImageSource.cs
- FrameworkContentElement.cs
- ServiceHostFactory.cs
- HashAlgorithm.cs
- TokenBasedSetEnumerator.cs
- ProtocolsConfiguration.cs
- PartitionedStreamMerger.cs
- ScriptResourceDefinition.cs
- TcpClientCredentialType.cs
- Attribute.cs
- TimeSpanConverter.cs
- ProgressiveCrcCalculatingStream.cs
- CheckBoxField.cs
- LinqDataSourceHelper.cs
- XmlHelper.cs
- BrowserDefinitionCollection.cs
- ImageInfo.cs
- FormsAuthenticationConfiguration.cs
- SoapExtensionTypeElement.cs
- Command.cs
- XmlDataSource.cs
- RemoteWebConfigurationHost.cs
- CTreeGenerator.cs
- SecurityPolicySection.cs
- SettingsPropertyValue.cs
- ObjectDataSourceMethodEventArgs.cs
- MarkupExtensionParser.cs