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
- GroupByExpressionRewriter.cs
- FacetValueContainer.cs
- MethodBody.cs
- SmiRequestExecutor.cs
- SqlDataSourceQueryEditorForm.cs
- ConfigurationSettings.cs
- UInt64Storage.cs
- ReaderWriterLockWrapper.cs
- Model3DCollection.cs
- TreeNodeCollectionEditor.cs
- SessionStateContainer.cs
- _LocalDataStoreMgr.cs
- StringUtil.cs
- XmlEventCache.cs
- MsmqTransportElement.cs
- Encoder.cs
- CodeSnippetCompileUnit.cs
- GZipObjectSerializer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridAutoFormatDialog.cs
- CompatibleIComparer.cs
- httpstaticobjectscollection.cs
- TraceHwndHost.cs
- ListViewCommandEventArgs.cs
- GeneralTransformCollection.cs
- SourceItem.cs
- DesignerResources.cs
- WebPartTransformer.cs
- HtmlFormParameterReader.cs
- PropertyInformationCollection.cs
- TextEditorCopyPaste.cs
- AppSettingsReader.cs
- ItemList.cs
- SafeTokenHandle.cs
- TimeoutValidationAttribute.cs
- UserControlDesigner.cs
- WindowsImpersonationContext.cs
- ContextBase.cs
- StreamAsIStream.cs
- CommandHelpers.cs
- TextRangeProviderWrapper.cs
- TrustManagerPromptUI.cs
- DetailsView.cs
- DataGridViewRowStateChangedEventArgs.cs
- DefaultBinder.cs
- BitmapEncoder.cs
- LeaseManager.cs
- PrimitiveDataContract.cs
- TraceContextRecord.cs
- NCryptNative.cs
- TogglePattern.cs
- OdbcConnectionFactory.cs
- CssTextWriter.cs
- XmlNullResolver.cs
- InvokePatternIdentifiers.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MulticastIPAddressInformationCollection.cs
- ContainerParaClient.cs
- ContentDisposition.cs
- isolationinterop.cs
- PauseStoryboard.cs
- NameNode.cs
- TraceProvider.cs
- DataTrigger.cs
- ReachSerializableProperties.cs
- FrameworkTextComposition.cs
- UnsafePeerToPeerMethods.cs
- Utility.cs
- DataGridViewRowsRemovedEventArgs.cs
- IList.cs
- ImageAttributes.cs
- DoubleCollectionConverter.cs
- baseaxisquery.cs
- HttpAsyncResult.cs
- GroupByQueryOperator.cs
- SupportsPreviewControlAttribute.cs
- EventWaitHandleSecurity.cs
- TimerElapsedEvenArgs.cs
- TypeReference.cs
- DataStreamFromComStream.cs
- MultiBinding.cs
- SamlAdvice.cs
- ToolboxItemAttribute.cs
- ErrorItem.cs
- CodeRegionDirective.cs
- WebPartsPersonalization.cs
- TypeConvertions.cs
- WebPartConnectionsCancelEventArgs.cs
- SafeEventLogReadHandle.cs
- LocalizabilityAttribute.cs
- DataGridItemCollection.cs
- SqlConnectionHelper.cs
- XmlSchemaSubstitutionGroup.cs
- FormatterConverter.cs
- BmpBitmapDecoder.cs
- wmiprovider.cs
- SoapElementAttribute.cs
- WebPartTracker.cs
- Vector3DAnimationUsingKeyFrames.cs
- AdministrationHelpers.cs