Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AtomServiceDocumentSerializer.cs
- SourceSwitch.cs
- RtType.cs
- TemplateField.cs
- DoubleSumAggregationOperator.cs
- LinearKeyFrames.cs
- CodeTypeReference.cs
- SqlProfileProvider.cs
- Connector.cs
- BindingsCollection.cs
- XmlDataSourceNodeDescriptor.cs
- AsymmetricSignatureDeformatter.cs
- ScrollData.cs
- DesignerWebPartChrome.cs
- TypeConverterHelper.cs
- COM2ExtendedBrowsingHandler.cs
- DictionaryBase.cs
- Util.cs
- GacUtil.cs
- DesignTimeTemplateParser.cs
- PageSettings.cs
- HandlerMappingMemo.cs
- TextPointer.cs
- KeyboardEventArgs.cs
- LassoHelper.cs
- _DisconnectOverlappedAsyncResult.cs
- IsolatedStorageFileStream.cs
- ContextQuery.cs
- WebPartRestoreVerb.cs
- MetadataItemEmitter.cs
- ViewEventArgs.cs
- _NTAuthentication.cs
- ColorDialog.cs
- AppDomainManager.cs
- Expander.cs
- OutOfProcStateClientManager.cs
- Propagator.cs
- Keywords.cs
- DBParameter.cs
- StopStoryboard.cs
- PartitionResolver.cs
- PieceNameHelper.cs
- TriState.cs
- FormClosedEvent.cs
- SafeTokenHandle.cs
- HandlerWithFactory.cs
- CorrelationTokenTypeConvertor.cs
- PlainXmlWriter.cs
- DatePickerAutomationPeer.cs
- Soap12ProtocolReflector.cs
- Identifier.cs
- BaseTemplateParser.cs
- InvalidOperationException.cs
- ConfigXmlText.cs
- XXXOnTypeBuilderInstantiation.cs
- DefaultTextStore.cs
- MetadataException.cs
- X509WindowsSecurityToken.cs
- ScaleTransform3D.cs
- KeyBinding.cs
- ArraySortHelper.cs
- AccessibleObject.cs
- InvokeMethod.cs
- XmlSignificantWhitespace.cs
- DataGridViewSelectedRowCollection.cs
- WebMessageFormatHelper.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- VectorCollectionValueSerializer.cs
- SoapExtensionImporter.cs
- WmiInstallComponent.cs
- EntityConnection.cs
- WorkflowRuntimeServiceElement.cs
- ClientSettings.cs
- ResourceManager.cs
- SqlClientWrapperSmiStreamChars.cs
- XmlCharacterData.cs
- ProtocolViolationException.cs
- EntityContainerRelationshipSetEnd.cs
- NumberFormatter.cs
- IERequestCache.cs
- CustomValidator.cs
- CompositeScriptReferenceEventArgs.cs
- UriParserTemplates.cs
- ObjectTypeMapping.cs
- DataGridRelationshipRow.cs
- ListViewGroupItemCollection.cs
- TimeStampChecker.cs
- SynthesizerStateChangedEventArgs.cs
- FieldTemplateFactory.cs
- XmlToDatasetMap.cs
- UserUseLicenseDictionaryLoader.cs
- FormViewUpdatedEventArgs.cs
- CodeAssignStatement.cs
- DocumentViewerBaseAutomationPeer.cs
- SqlClientPermission.cs
- HttpBrowserCapabilitiesWrapper.cs
- Comparer.cs
- ApplicationInfo.cs
- MessageBox.cs
- RootProfilePropertySettingsCollection.cs