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
- XPathQilFactory.cs
- CultureInfoConverter.cs
- DataGridBoundColumn.cs
- designeractionbehavior.cs
- MenuItemBinding.cs
- ServiceHostingEnvironment.cs
- ExpressionVisitor.cs
- RenderOptions.cs
- DataPointer.cs
- QueryContinueDragEventArgs.cs
- IndentedWriter.cs
- WindowsAuthenticationModule.cs
- VariableDesigner.xaml.cs
- VectorKeyFrameCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- SqlAggregateChecker.cs
- SafeNativeMethods.cs
- MetadataItem.cs
- CodeValidator.cs
- FixedTextContainer.cs
- StandardTransformFactory.cs
- InputScope.cs
- CorrelationResolver.cs
- WebPartConnectionsDisconnectVerb.cs
- Subtree.cs
- JoinGraph.cs
- FormViewInsertedEventArgs.cs
- AxHostDesigner.cs
- ChineseLunisolarCalendar.cs
- CacheChildrenQuery.cs
- EndPoint.cs
- ValueQuery.cs
- XmlILConstructAnalyzer.cs
- ConnectionAcceptor.cs
- XamlFilter.cs
- Visual3D.cs
- ReversePositionQuery.cs
- ImageListUtils.cs
- BaseParagraph.cs
- XmlSortKeyAccumulator.cs
- OracleBinary.cs
- ClientSettingsProvider.cs
- TabletCollection.cs
- InstanceDescriptor.cs
- TreeWalkHelper.cs
- safelink.cs
- SerialPort.cs
- OraclePermissionAttribute.cs
- ToolStripItemBehavior.cs
- InkPresenter.cs
- PostBackOptions.cs
- MD5.cs
- ServiceModelTimeSpanValidator.cs
- WebPartDescription.cs
- OleDbCommandBuilder.cs
- DataListDesigner.cs
- MultidimensionalArrayItemReference.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- Hex.cs
- IndexOutOfRangeException.cs
- SqlGenericUtil.cs
- GorillaCodec.cs
- ContainerControl.cs
- DataGridViewCellStyle.cs
- SelectedDatesCollection.cs
- InputProcessorProfiles.cs
- Perspective.cs
- HttpProxyCredentialType.cs
- Composition.cs
- Comparer.cs
- SpeechAudioFormatInfo.cs
- TripleDES.cs
- ContainerUIElement3D.cs
- Stopwatch.cs
- Message.cs
- FontStretchConverter.cs
- WizardDesigner.cs
- EdmMember.cs
- SqlDataSourceDesigner.cs
- LabelExpression.cs
- CngAlgorithm.cs
- TransformConverter.cs
- Util.cs
- TableRowCollection.cs
- CodeMemberMethod.cs
- Encoding.cs
- SecurityContext.cs
- SqlDataSourceFilteringEventArgs.cs
- TransactionManager.cs
- CodeAttributeDeclarationCollection.cs
- ExeContext.cs
- HtmlPanelAdapter.cs
- BmpBitmapDecoder.cs
- CodeDirectionExpression.cs
- HwndSubclass.cs
- TreeBuilderBamlTranslator.cs
- Native.cs
- SafeFindHandle.cs
- AndMessageFilterTable.cs
- OdbcCommand.cs