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
- TextCompositionManager.cs
- XsltException.cs
- HtmlHead.cs
- ZoomComboBox.cs
- NativeMethods.cs
- ConfigurationConverterBase.cs
- WindowsFormsDesignerOptionService.cs
- BitStack.cs
- StringFreezingAttribute.cs
- NullToBooleanConverter.cs
- FixedPageAutomationPeer.cs
- DelegateSerializationHolder.cs
- PagerSettings.cs
- unitconverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TypeBuilderInstantiation.cs
- MeshGeometry3D.cs
- StateDesigner.LayoutSelectionGlyph.cs
- PropagatorResult.cs
- DataGridViewTextBoxEditingControl.cs
- GAC.cs
- RuleProcessor.cs
- CodeActivityMetadata.cs
- EmptyControlCollection.cs
- InlineObject.cs
- SoapSchemaImporter.cs
- SystemInfo.cs
- ImmutableCommunicationTimeouts.cs
- XPathNodeHelper.cs
- ListViewItem.cs
- FusionWrap.cs
- BasicCellRelation.cs
- BlurEffect.cs
- LambdaCompiler.Lambda.cs
- StorageAssociationSetMapping.cs
- UnsafeNativeMethodsTablet.cs
- JsonObjectDataContract.cs
- UserControl.cs
- Parser.cs
- EventLogTraceListener.cs
- WebPartCatalogAddVerb.cs
- PackWebResponse.cs
- StylusEditingBehavior.cs
- QuaternionAnimation.cs
- SqlDependencyListener.cs
- Part.cs
- PropertyAccessVisitor.cs
- StringUtil.cs
- PersonalizationDictionary.cs
- KerberosRequestorSecurityToken.cs
- XomlCompilerResults.cs
- Scheduler.cs
- HuffmanTree.cs
- InstanceView.cs
- Span.cs
- TcpTransportSecurityElement.cs
- ExpressionParser.cs
- Msec.cs
- BasicHttpMessageSecurityElement.cs
- TdsParserSafeHandles.cs
- RequestStatusBarUpdateEventArgs.cs
- MetafileHeader.cs
- BrowsableAttribute.cs
- CssTextWriter.cs
- EntityDataSourceDesignerHelper.cs
- TraceRecord.cs
- CurrentChangingEventManager.cs
- TextEditorTables.cs
- FormsIdentity.cs
- TextServicesCompartmentContext.cs
- VisualTreeUtils.cs
- UserPersonalizationStateInfo.cs
- HwndHost.cs
- TriggerCollection.cs
- ProfileSettingsCollection.cs
- MSG.cs
- PropertyValueUIItem.cs
- OleTxTransaction.cs
- DataControlFieldHeaderCell.cs
- ProfileGroupSettingsCollection.cs
- SiteMapNodeItemEventArgs.cs
- InvalidPrinterException.cs
- UndoManager.cs
- OpacityConverter.cs
- CalendarDesigner.cs
- PrintController.cs
- SendingRequestEventArgs.cs
- BaseProcessor.cs
- SocketException.cs
- InkCanvas.cs
- SchemaElementLookUpTableEnumerator.cs
- VectorAnimationBase.cs
- Int32KeyFrameCollection.cs
- RightsManagementEncryptionTransform.cs
- While.cs
- GCHandleCookieTable.cs
- NGCSerializerAsync.cs
- CssTextWriter.cs
- FolderBrowserDialog.cs
- Track.cs