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
- DataGridRowEventArgs.cs
- Environment.cs
- propertyentry.cs
- DocumentsTrace.cs
- assertwrapper.cs
- Point.cs
- AnnotationDocumentPaginator.cs
- RegexCode.cs
- XamlStyleSerializer.cs
- FillBehavior.cs
- ToolStripDropDownClosingEventArgs.cs
- ComplexLine.cs
- JsonReaderDelegator.cs
- WithParamAction.cs
- Helper.cs
- ArgumentElement.cs
- BufferedGraphicsContext.cs
- SchemaDeclBase.cs
- Message.cs
- DataGridViewColumnTypePicker.cs
- WorkflowHostingEndpoint.cs
- Win32.cs
- WindowAutomationPeer.cs
- GroupItemAutomationPeer.cs
- EtwTrace.cs
- ListViewGroupConverter.cs
- DataServiceQueryException.cs
- SqlHelper.cs
- MessageProtectionOrder.cs
- PaintEvent.cs
- EntryPointNotFoundException.cs
- MatrixValueSerializer.cs
- SemanticKeyElement.cs
- BuildManagerHost.cs
- ResourceContainer.cs
- GenericIdentity.cs
- CssClassPropertyAttribute.cs
- AutomationPatternInfo.cs
- BamlLocalizationDictionary.cs
- ConfigurationStrings.cs
- MobileSysDescriptionAttribute.cs
- ErrorTableItemStyle.cs
- XPathNode.cs
- GifBitmapEncoder.cs
- Buffer.cs
- TaskResultSetter.cs
- ImageButton.cs
- RSAOAEPKeyExchangeFormatter.cs
- AbstractSvcMapFileLoader.cs
- DependencyPropertyKind.cs
- WebServiceErrorEvent.cs
- AssemblyName.cs
- DiagnosticsConfigurationHandler.cs
- InputScope.cs
- XmlSortKeyAccumulator.cs
- ObjectDataSource.cs
- CriticalHandle.cs
- InnerItemCollectionView.cs
- BufferBuilder.cs
- ServiceDeploymentInfo.cs
- EntityDataSourceWrapper.cs
- PaintEvent.cs
- TypeLibConverter.cs
- ReadOnlyDictionary.cs
- TextAction.cs
- AutoSizeToolBoxItem.cs
- TraceXPathNavigator.cs
- AccessedThroughPropertyAttribute.cs
- RectIndependentAnimationStorage.cs
- ClientType.cs
- BinaryParser.cs
- AlignmentXValidation.cs
- ContainerControlDesigner.cs
- PassportAuthenticationEventArgs.cs
- PrtCap_Builder.cs
- InvokeProviderWrapper.cs
- TypeValidationEventArgs.cs
- SchemaAttDef.cs
- XmlSchemaObjectTable.cs
- SHA384Managed.cs
- Debugger.cs
- RequestCachePolicyConverter.cs
- HttpCookieCollection.cs
- ImageClickEventArgs.cs
- SmiEventStream.cs
- coordinatorfactory.cs
- UpDownBase.cs
- SqlWebEventProvider.cs
- SafePointer.cs
- NamedPipeHostedTransportConfiguration.cs
- XamlContextStack.cs
- FloaterParagraph.cs
- FontSourceCollection.cs
- DataGridViewCellEventArgs.cs
- SourceElementsCollection.cs
- ProgressBar.cs
- XmlElementAttribute.cs
- XsltQilFactory.cs
- ObjectDataSourceMethodEventArgs.cs
- ControlAdapter.cs