Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SlotInfo.cs
- XmlArrayAttribute.cs
- SchemaInfo.cs
- PeerApplicationLaunchInfo.cs
- XmlNamespaceManager.cs
- XamlPoint3DCollectionSerializer.cs
- SettingsPropertyCollection.cs
- DataSetMappper.cs
- CoreSwitches.cs
- AutomationProperties.cs
- DataTableTypeConverter.cs
- IndexedGlyphRun.cs
- ProfileSettingsCollection.cs
- ButtonAutomationPeer.cs
- BCryptHashAlgorithm.cs
- MessageBuffer.cs
- Error.cs
- NullableDecimalAverageAggregationOperator.cs
- HwndSubclass.cs
- CompilerErrorCollection.cs
- JpegBitmapEncoder.cs
- SupportsEventValidationAttribute.cs
- FontStretch.cs
- SiteMembershipCondition.cs
- EmbossBitmapEffect.cs
- MetadataSet.cs
- BypassElementCollection.cs
- ProtectedConfiguration.cs
- ErrorStyle.cs
- ListBase.cs
- ToolStripCodeDomSerializer.cs
- TraceSection.cs
- ObjectIDGenerator.cs
- ProtocolElementCollection.cs
- EntityProviderFactory.cs
- CompositeFontFamily.cs
- UIElementIsland.cs
- LabelEditEvent.cs
- PropertyEmitter.cs
- ActivityBindForm.cs
- TraceInternal.cs
- InvokeBase.cs
- UrlPath.cs
- SettingsSection.cs
- ProtectedConfiguration.cs
- ToolStripDropDownClosedEventArgs.cs
- EdmValidator.cs
- ModelPropertyImpl.cs
- EventHandlerList.cs
- HyperLink.cs
- XsltCompileContext.cs
- UnmanagedMemoryStream.cs
- LateBoundChannelParameterCollection.cs
- SqlEnums.cs
- ViewLoader.cs
- ETagAttribute.cs
- Nullable.cs
- DataRowChangeEvent.cs
- OracleConnectionFactory.cs
- DesignerToolStripControlHost.cs
- OracleMonthSpan.cs
- DataContractSet.cs
- UiaCoreTypesApi.cs
- SplineKeyFrames.cs
- SkipStoryboardToFill.cs
- TextServicesDisplayAttribute.cs
- WebServicesInteroperability.cs
- StringUtil.cs
- ToolStrip.cs
- InternalDispatchObject.cs
- JoinSymbol.cs
- XmlSchemaAnyAttribute.cs
- StreamResourceInfo.cs
- PointF.cs
- MetadataCacheItem.cs
- HttpResponseHeader.cs
- InfoCardBaseException.cs
- MenuAdapter.cs
- CqlLexerHelpers.cs
- XmlUnspecifiedAttribute.cs
- PropertyConverter.cs
- OAVariantLib.cs
- TextAutomationPeer.cs
- MinimizableAttributeTypeConverter.cs
- TextSimpleMarkerProperties.cs
- TcpActivation.cs
- ScopelessEnumAttribute.cs
- MimeBasePart.cs
- FormViewModeEventArgs.cs
- IFormattable.cs
- ActivityValidationServices.cs
- SQLByte.cs
- EmptyStringExpandableObjectConverter.cs
- DisableDpiAwarenessAttribute.cs
- CompositeScriptReference.cs
- SchemaUtility.cs
- CornerRadius.cs
- QuaternionAnimation.cs
- MachineSettingsSection.cs
- ServiceX509SecurityTokenProvider.cs