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
- ObjectTokenCategory.cs
- WebPartPersonalization.cs
- VerticalAlignConverter.cs
- ProxyHelper.cs
- Authorization.cs
- DataGridViewRowHeaderCell.cs
- ContainerControl.cs
- CodeTypeMemberCollection.cs
- BroadcastEventHelper.cs
- DefaultDiscoveryService.cs
- PageCodeDomTreeGenerator.cs
- ADConnectionHelper.cs
- SignatureDescription.cs
- ReflectionTypeLoadException.cs
- TextProviderWrapper.cs
- ScaleTransform3D.cs
- InputMethodStateChangeEventArgs.cs
- __TransparentProxy.cs
- WebPartAuthorizationEventArgs.cs
- DriveInfo.cs
- TableItemProviderWrapper.cs
- TdsValueSetter.cs
- FSWPathEditor.cs
- ProcessInputEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- FixedPage.cs
- Timer.cs
- SmtpNtlmAuthenticationModule.cs
- XmlAtomicValue.cs
- OdbcConnectionStringbuilder.cs
- DisplayInformation.cs
- EditCommandColumn.cs
- ProgramNode.cs
- ClosableStream.cs
- EntityDataSource.cs
- DataTable.cs
- SqlLiftIndependentRowExpressions.cs
- VerticalAlignConverter.cs
- HtmlHistory.cs
- DictationGrammar.cs
- QilPatternFactory.cs
- XhtmlMobileTextWriter.cs
- SafePEFileHandle.cs
- XmlBaseReader.cs
- TextServicesPropertyRanges.cs
- TreeViewDataItemAutomationPeer.cs
- GeometryDrawing.cs
- DomainUpDown.cs
- IChannel.cs
- ClientApiGenerator.cs
- HelloOperationAsyncResult.cs
- HttpTransportElement.cs
- RawStylusSystemGestureInputReport.cs
- GetImportedCardRequest.cs
- ServiceBuildProvider.cs
- ChannelSinkStacks.cs
- BehaviorEditorPart.cs
- DropAnimation.xaml.cs
- SafeCoTaskMem.cs
- SourceItem.cs
- ObjectKeyFrameCollection.cs
- Paragraph.cs
- TransformerInfo.cs
- WindowsToolbarItemAsMenuItem.cs
- StreamingContext.cs
- MimeReflector.cs
- EndpointDiscoveryElement.cs
- ByteStreamGeometryContext.cs
- EntityProviderServices.cs
- ValueTypeFixupInfo.cs
- _LoggingObject.cs
- FlowPanelDesigner.cs
- SafeNativeMethods.cs
- DocumentPageView.cs
- RawStylusInputCustomDataList.cs
- NativeMethods.cs
- PaintEvent.cs
- SelectorAutomationPeer.cs
- DataSpaceManager.cs
- XmlSignatureProperties.cs
- NullableIntAverageAggregationOperator.cs
- FilteredReadOnlyMetadataCollection.cs
- ListenerConnectionDemuxer.cs
- CanonicalFontFamilyReference.cs
- PersonalizableTypeEntry.cs
- FileUtil.cs
- SqlNotificationEventArgs.cs
- ConditionalDesigner.cs
- ObservableDictionary.cs
- InstanceStoreQueryResult.cs
- BitmapData.cs
- DynamicVirtualDiscoSearcher.cs
- InternalControlCollection.cs
- followingquery.cs
- CompiledELinqQueryState.cs
- Visual.cs
- ColorConvertedBitmap.cs
- EventLogTraceListener.cs
- XPathPatternParser.cs
- TextParentUndoUnit.cs