Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / TCEAdapterGen / EventItfInfo.cs / 1305376 / EventItfInfo.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.InteropServices.TCEAdapterGen { using System; using System.Reflection; using System.Collections; internal class EventItfInfo { public EventItfInfo(String strEventItfName, String strSrcItfName, String strEventProviderName, RuntimeAssembly asmImport, RuntimeAssembly 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 RuntimeAssembly m_asmImport; private RuntimeAssembly 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.Collections; internal class EventItfInfo { public EventItfInfo(String strEventItfName, String strSrcItfName, String strEventProviderName, RuntimeAssembly asmImport, RuntimeAssembly 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 RuntimeAssembly m_asmImport; private RuntimeAssembly 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
- ScriptHandlerFactory.cs
- ImageCollectionCodeDomSerializer.cs
- SafeLibraryHandle.cs
- WebPartDeleteVerb.cs
- CodeGotoStatement.cs
- DSACryptoServiceProvider.cs
- PenContext.cs
- ToolStripItemImageRenderEventArgs.cs
- TextSimpleMarkerProperties.cs
- ConfigurationSchemaErrors.cs
- EntryIndex.cs
- SqlUtils.cs
- AsyncPostBackTrigger.cs
- TreeView.cs
- ASCIIEncoding.cs
- RegexCompiler.cs
- IgnoreFlushAndCloseStream.cs
- X509SubjectKeyIdentifierClause.cs
- GeneralTransform3DGroup.cs
- CacheDict.cs
- ParameterToken.cs
- AlphaSortedEnumConverter.cs
- BitmapPalette.cs
- PropertyEmitter.cs
- BrowsableAttribute.cs
- EncodingDataItem.cs
- StructuredProperty.cs
- InheritanceAttribute.cs
- SQLBinary.cs
- safelink.cs
- Model3D.cs
- TreeViewItemAutomationPeer.cs
- SqlMethods.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DataViewSetting.cs
- WebBrowser.cs
- PeerEndPoint.cs
- CodeCommentStatement.cs
- OrderToken.cs
- NotifyInputEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- IIS7WorkerRequest.cs
- HttpPostedFile.cs
- CollectionContainer.cs
- DataGridTextBoxColumn.cs
- XPathNodePointer.cs
- MemoryRecordBuffer.cs
- XmlObjectSerializer.cs
- Geometry.cs
- State.cs
- DurationConverter.cs
- DataQuery.cs
- ALinqExpressionVisitor.cs
- COM2FontConverter.cs
- Security.cs
- ColumnHeader.cs
- XPathDocumentNavigator.cs
- ClientConvert.cs
- AncestorChangedEventArgs.cs
- HttpChannelFactory.cs
- AuthenticatedStream.cs
- DelegateHelpers.cs
- HtmlShim.cs
- IdnMapping.cs
- TextEndOfParagraph.cs
- DocumentAutomationPeer.cs
- SpellCheck.cs
- SessionIDManager.cs
- CompoundFileStreamReference.cs
- ParserContext.cs
- Effect.cs
- RecordConverter.cs
- CalendarDateChangedEventArgs.cs
- CacheAxisQuery.cs
- FilteredAttributeCollection.cs
- BufferModeSettings.cs
- Context.cs
- PrintControllerWithStatusDialog.cs
- DocumentGrid.cs
- CacheDependency.cs
- EmissiveMaterial.cs
- CngKey.cs
- CodeConstructor.cs
- ExitEventArgs.cs
- XPathArrayIterator.cs
- StrokeFIndices.cs
- UserControlParser.cs
- XmlByteStreamWriter.cs
- TargetFrameworkUtil.cs
- UrlMappingsSection.cs
- LoginAutoFormat.cs
- InfoCardProofToken.cs
- PerformanceCounterPermission.cs
- XmlSerializerOperationBehavior.cs
- ConcurrentQueue.cs
- ChildrenQuery.cs
- WebServiceEnumData.cs
- HyperlinkAutomationPeer.cs
- XmlQueryRuntime.cs
- SslStream.cs