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
- NullableFloatMinMaxAggregationOperator.cs
- FillRuleValidation.cs
- ConfigXmlSignificantWhitespace.cs
- ResourceSet.cs
- UpdatePanelControlTrigger.cs
- InternalsVisibleToAttribute.cs
- ServiceReference.cs
- NotFiniteNumberException.cs
- PropertyEmitterBase.cs
- EntityCodeGenerator.cs
- UriExt.cs
- DataDocumentXPathNavigator.cs
- ToolBarOverflowPanel.cs
- XmlILIndex.cs
- AmbientLight.cs
- CodeExporter.cs
- MaterialCollection.cs
- ByteStorage.cs
- LongValidatorAttribute.cs
- WebServiceHostFactory.cs
- StaticFileHandler.cs
- SqlProcedureAttribute.cs
- SmtpClient.cs
- SchemaEntity.cs
- SourceInterpreter.cs
- SymDocumentType.cs
- ListViewInsertEventArgs.cs
- DateTimeSerializationSection.cs
- PermissionListSet.cs
- EmbeddedObject.cs
- StorageInfo.cs
- CodeGeneratorOptions.cs
- TemplateContainer.cs
- DispatcherHookEventArgs.cs
- HealthMonitoringSectionHelper.cs
- SystemTcpConnection.cs
- webeventbuffer.cs
- DataSourceHelper.cs
- UIElementParagraph.cs
- cryptoapiTransform.cs
- ScrollBarAutomationPeer.cs
- OracleNumber.cs
- ConfigPathUtility.cs
- Matrix3D.cs
- SrgsDocumentParser.cs
- GeneralTransform3DTo2D.cs
- CLSCompliantAttribute.cs
- XmlCodeExporter.cs
- DataGridViewCellStateChangedEventArgs.cs
- DependencyProperty.cs
- TabRenderer.cs
- XmlConvert.cs
- sqlcontext.cs
- PipelineModuleStepContainer.cs
- Binding.cs
- UnmanagedHandle.cs
- VisualBasicReference.cs
- EventlogProvider.cs
- NativeCppClassAttribute.cs
- oledbmetadatacolumnnames.cs
- HttpCapabilitiesEvaluator.cs
- CollectionDataContractAttribute.cs
- SystemTcpConnection.cs
- SecurityPolicyVersion.cs
- ParamArrayAttribute.cs
- Queue.cs
- _DomainName.cs
- VariantWrapper.cs
- DataControlFieldCollection.cs
- EnumConverter.cs
- JsonSerializer.cs
- DataObjectEventArgs.cs
- SelectionChangedEventArgs.cs
- ServiceChannelProxy.cs
- RuleSettings.cs
- EdmRelationshipRoleAttribute.cs
- TraceSection.cs
- GridPattern.cs
- Help.cs
- DetailsViewRow.cs
- AttachedAnnotation.cs
- DataSourceListEditor.cs
- SqlReorderer.cs
- Vector.cs
- ArcSegment.cs
- DoubleAnimation.cs
- FamilyMap.cs
- DocumentReference.cs
- TokenizerHelper.cs
- NativeRightsManagementAPIsStructures.cs
- RoleService.cs
- ClickablePoint.cs
- CopyCodeAction.cs
- PropertySourceInfo.cs
- LassoHelper.cs
- CultureSpecificCharacterBufferRange.cs
- DateTimePickerDesigner.cs
- AsymmetricKeyExchangeFormatter.cs
- ToolStripPanel.cs
- XmlSchemaFacet.cs