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
- EditorZoneAutoFormat.cs
- TextTreeFixupNode.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- RepeatInfo.cs
- FramingEncoders.cs
- FlowDocumentReaderAutomationPeer.cs
- OperationCanceledException.cs
- SetIterators.cs
- SystemIcons.cs
- MonikerSyntaxException.cs
- PrintDialog.cs
- PartBasedPackageProperties.cs
- ScrollContentPresenter.cs
- SelectionProcessor.cs
- GestureRecognitionResult.cs
- XmlCharCheckingReader.cs
- CopyAction.cs
- Queue.cs
- TextRunCache.cs
- RadioButtonList.cs
- XmlArrayAttribute.cs
- XmlSchemaInferenceException.cs
- SerializationAttributes.cs
- SoapElementAttribute.cs
- ModifierKeysValueSerializer.cs
- XamlTypeMapper.cs
- AvTraceDetails.cs
- IgnoreSectionHandler.cs
- AppDomainManager.cs
- DictionaryBase.cs
- SqlSupersetValidator.cs
- QilList.cs
- SetterBaseCollection.cs
- FormCollection.cs
- TextProperties.cs
- DataControlPagerLinkButton.cs
- PlaceHolder.cs
- DataServiceKeyAttribute.cs
- Registration.cs
- TripleDES.cs
- MsmqIntegrationChannelFactory.cs
- RemoteWebConfigurationHost.cs
- Registry.cs
- SqlCommandSet.cs
- OdbcConnectionStringbuilder.cs
- XmlDeclaration.cs
- ModuleBuilderData.cs
- sitestring.cs
- XsdDuration.cs
- XhtmlConformanceSection.cs
- HttpProcessUtility.cs
- CodeParameterDeclarationExpressionCollection.cs
- MenuAutomationPeer.cs
- Metafile.cs
- LineGeometry.cs
- ComponentCommands.cs
- BitmapImage.cs
- BitArray.cs
- Emitter.cs
- EntityObject.cs
- SingleSelectRootGridEntry.cs
- ChtmlTextWriter.cs
- _AutoWebProxyScriptHelper.cs
- RequestCachePolicy.cs
- TextRangeEdit.cs
- DiscoveryExceptionDictionary.cs
- ImageListImageEditor.cs
- RootBrowserWindow.cs
- BamlReader.cs
- CustomValidator.cs
- Filter.cs
- ComplexTypeEmitter.cs
- TextDocumentView.cs
- ParameterDataSourceExpression.cs
- XmlWriterSettings.cs
- PointLightBase.cs
- TypeContext.cs
- PictureBoxDesigner.cs
- RootBuilder.cs
- XmlUtil.cs
- File.cs
- EncoderReplacementFallback.cs
- ManagementScope.cs
- DocumentXmlWriter.cs
- AnnotationComponentManager.cs
- WebDescriptionAttribute.cs
- ToolStripAdornerWindowService.cs
- BuilderInfo.cs
- SerializationStore.cs
- LazyTextWriterCreator.cs
- Deflater.cs
- XPathCompileException.cs
- ViewRendering.cs
- GraphicsContainer.cs
- DtrList.cs
- CompensationParticipant.cs
- PerformanceCounters.cs
- X509ThumbprintKeyIdentifierClause.cs
- DesignerVerb.cs
- MailWebEventProvider.cs