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
- ObjectDataSourceDesigner.cs
- odbcmetadatacolumnnames.cs
- FontCacheUtil.cs
- OleDbPermission.cs
- SimpleBitVector32.cs
- MetadataSerializer.cs
- MatrixCamera.cs
- ParameterCollection.cs
- SqlInfoMessageEvent.cs
- RunInstallerAttribute.cs
- MetadataPropertyAttribute.cs
- ExtenderControl.cs
- DynamicPropertyHolder.cs
- XmlCharCheckingReader.cs
- Avt.cs
- WebScriptEnablingBehavior.cs
- MessagePropertyAttribute.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RectangleF.cs
- ValueChangedEventManager.cs
- TaskSchedulerException.cs
- AsymmetricSecurityProtocol.cs
- PathFigureCollection.cs
- MarkedHighlightComponent.cs
- KoreanCalendar.cs
- EntityFunctions.cs
- SemanticTag.cs
- CaseInsensitiveComparer.cs
- FlowchartStart.xaml.cs
- RichTextBoxAutomationPeer.cs
- EntityTypeEmitter.cs
- ToolStripManager.cs
- ItemContainerProviderWrapper.cs
- StyleCollection.cs
- PrintDocument.cs
- SpeechSynthesizer.cs
- KeyConstraint.cs
- TraceSource.cs
- FragmentQuery.cs
- StaticExtension.cs
- InvalidDocumentContentsException.cs
- Hyperlink.cs
- BinHexEncoding.cs
- HashSet.cs
- EncodingDataItem.cs
- PolicyChain.cs
- MessageLoggingFilterTraceRecord.cs
- XhtmlBasicPanelAdapter.cs
- StructuralComparisons.cs
- TraceHandler.cs
- XmlElementAttributes.cs
- FlatButtonAppearance.cs
- StructuredType.cs
- UserControlParser.cs
- OutputCacheProfileCollection.cs
- AmbiguousMatchException.cs
- DeflateInput.cs
- StateMachine.cs
- InputLanguageProfileNotifySink.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- EntityDataSourceView.cs
- CalendarAutoFormat.cs
- COM2ICategorizePropertiesHandler.cs
- TableAdapterManagerHelper.cs
- CharEntityEncoderFallback.cs
- Semaphore.cs
- EventSourceCreationData.cs
- Win32.cs
- MatrixTransform.cs
- MarshalDirectiveException.cs
- RichTextBoxAutomationPeer.cs
- GuidConverter.cs
- TextProviderWrapper.cs
- PrePrepareMethodAttribute.cs
- Overlapped.cs
- Variant.cs
- ComProxy.cs
- Zone.cs
- ImageAnimator.cs
- WorkflowMarkupSerializationProvider.cs
- TypeConverter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Pair.cs
- DrawingContextDrawingContextWalker.cs
- ObjectSelectorEditor.cs
- RouteTable.cs
- SqlGenerator.cs
- ReflectionHelper.cs
- EventPrivateKey.cs
- XamlTreeBuilderBamlRecordWriter.cs
- FormsAuthenticationUserCollection.cs
- DateTimeValueSerializerContext.cs
- ReceiveCompletedEventArgs.cs
- PenContext.cs
- BamlStream.cs
- TemplatePropertyEntry.cs
- ConfigXmlAttribute.cs
- DataGridViewRowEventArgs.cs
- XLinq.cs
- LassoSelectionBehavior.cs