Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DrawingAttributesDefaultValueFactory.cs
- DataPointer.cs
- ItemsControlAutomationPeer.cs
- VSWCFServiceContractGenerator.cs
- Line.cs
- EntityAdapter.cs
- TransactionScope.cs
- SerializationFieldInfo.cs
- DiscoveryDocumentLinksPattern.cs
- NavigatingCancelEventArgs.cs
- ListItemCollection.cs
- InvokeWebService.cs
- EtwTrace.cs
- Qualifier.cs
- CacheVirtualItemsEvent.cs
- IisTraceListener.cs
- KeyboardEventArgs.cs
- RegexCode.cs
- EventLogger.cs
- ObjectViewEntityCollectionData.cs
- LineBreakRecord.cs
- MultiBinding.cs
- BuildManagerHost.cs
- DependencyObjectPropertyDescriptor.cs
- OrderedDictionary.cs
- DefaultAssemblyResolver.cs
- _KerberosClient.cs
- QfeChecker.cs
- ScriptBehaviorDescriptor.cs
- Size3D.cs
- Misc.cs
- ComplexBindingPropertiesAttribute.cs
- Internal.cs
- DynamicILGenerator.cs
- RolePrincipal.cs
- NGCSerializerAsync.cs
- CheckPair.cs
- TransformProviderWrapper.cs
- IntPtr.cs
- srgsitem.cs
- PeerNameRecord.cs
- ExtensionWindowResizeGrip.cs
- BamlTreeMap.cs
- SID.cs
- _NetRes.cs
- QilReplaceVisitor.cs
- NamedPipeHostedTransportConfiguration.cs
- ComponentResourceKeyConverter.cs
- DbBuffer.cs
- StorageAssociationSetMapping.cs
- DiscoveryDocumentLinksPattern.cs
- AmbientValueAttribute.cs
- CacheOutputQuery.cs
- EntitySqlQueryBuilder.cs
- InternalCache.cs
- PermissionSetTriple.cs
- InternalPolicyElement.cs
- WebConfigurationManager.cs
- ProjectionPruner.cs
- OpCodes.cs
- returneventsaver.cs
- ConfigurationSectionCollection.cs
- StylusButton.cs
- TargetException.cs
- Style.cs
- IODescriptionAttribute.cs
- StaticSiteMapProvider.cs
- CodeTypeReferenceCollection.cs
- XmlTypeMapping.cs
- WebPartEditorCancelVerb.cs
- MultipartIdentifier.cs
- InfoCardSymmetricAlgorithm.cs
- LineGeometry.cs
- TraceFilter.cs
- PerformanceCounterCategory.cs
- LocalFileSettingsProvider.cs
- DrawItemEvent.cs
- FreezableCollection.cs
- InvokeBase.cs
- HttpFormatExtensions.cs
- ActivityDesignerAccessibleObject.cs
- InfoCardRSACryptoProvider.cs
- SqlCommandBuilder.cs
- ArrangedElement.cs
- ObjectSpanRewriter.cs
- HtmlShimManager.cs
- HealthMonitoringSection.cs
- ChannelManagerService.cs
- PropertyKey.cs
- WebPartActionVerb.cs
- ExternalCalls.cs
- Point3DAnimationUsingKeyFrames.cs
- NamedPipeConnectionPool.cs
- BaseUriHelper.cs
- HttpCachePolicyElement.cs
- HostingEnvironmentWrapper.cs
- PartialCachingControl.cs
- ParallelRangeManager.cs
- ImmutableObjectAttribute.cs
- WebPartEditVerb.cs