Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / InternalTypeHelper.cs / 1 / InternalTypeHelper.cs
//----------------------------------------------------------------------------
//
// File: InternalTypeHelper.cs
//
// Description:
// Defines a class that Provides methods used internally by the BamlReader to access
// allowed internal types, properties and events in Partial Trust. The markup compiler
// will generate a subclass of this class that provides an appropriate implementation
// in the user's code context.
//
// Copyright (C) 2003 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Reflection;
using System.ComponentModel;
using System.Globalization;
namespace System.Windows.Markup
{
///
/// Class that provides methods used internally by the BamlReader to access allowed
/// internal types, properties and events in Partial Trust. The markup compiler
/// will generate a subclass of this class that provides an appropriate implementation
/// in the user's code context.
///
[EditorBrowsable(EditorBrowsableState.Never)]
public abstract class InternalTypeHelper
{
///
/// Default InternalTypeHelper constructor
///
protected InternalTypeHelper()
{
}
///
/// Called by the BamlReader to create an internal Type.
///
protected internal abstract object CreateInstance(Type type, CultureInfo culture);
///
/// Called by the BamlReader to set an internal property value on a target object.
///
protected internal abstract object GetPropertyValue(PropertyInfo propertyInfo, object target, CultureInfo culture);
///
/// Called by the BamlReader to get an internal property value on a target object.
///
protected internal abstract void SetPropertyValue(PropertyInfo propertyInfo, object target, object value, CultureInfo culture);
///
/// Called by the BamlReader to create an event delegate on a non-public handler method.
///
protected internal abstract Delegate CreateDelegate(Type delegateType, object target, string handler);
///
/// Called by the BamlReader to attach an event handler delegate to an internal event.
///
protected internal abstract void AddEventHandler(EventInfo eventInfo, object target, Delegate handler);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NativeObjectSecurity.cs
- DataGridViewAdvancedBorderStyle.cs
- PropertyInformationCollection.cs
- EnumValidator.cs
- ServiceDescriptions.cs
- ThemeDictionaryExtension.cs
- InvalidPropValue.cs
- RSAOAEPKeyExchangeFormatter.cs
- WebBrowserUriTypeConverter.cs
- WsatConfiguration.cs
- CompilationSection.cs
- WebScriptServiceHost.cs
- StateFinalizationDesigner.cs
- Calendar.cs
- MobileCategoryAttribute.cs
- PropertyOrder.cs
- AvTraceFormat.cs
- CommonXSendMessage.cs
- TransactionProtocolConverter.cs
- Content.cs
- SmtpNegotiateAuthenticationModule.cs
- ScriptComponentDescriptor.cs
- DataGridViewComboBoxColumn.cs
- MenuAdapter.cs
- DesignTimeVisibleAttribute.cs
- localization.cs
- JumpList.cs
- DBSqlParserTableCollection.cs
- BuilderPropertyEntry.cs
- ServerValidateEventArgs.cs
- ExeContext.cs
- TextBox.cs
- CheckPair.cs
- OdbcEnvironment.cs
- LazyTextWriterCreator.cs
- CellPartitioner.cs
- SystemColors.cs
- StreamGeometry.cs
- WebPartDisplayModeEventArgs.cs
- HttpValueCollection.cs
- ProtocolsConfiguration.cs
- FormViewUpdateEventArgs.cs
- SoapAttributes.cs
- VisualStyleTypesAndProperties.cs
- IndexedGlyphRun.cs
- WebPartActionVerb.cs
- Token.cs
- TabControlDesigner.cs
- BaseParaClient.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ZipIOLocalFileHeader.cs
- ComponentCommands.cs
- RuntimeHelpers.cs
- AppDomainFactory.cs
- RightsController.cs
- WpfKnownTypeInvoker.cs
- JavascriptCallbackResponseProperty.cs
- XmlBoundElement.cs
- ListViewCommandEventArgs.cs
- FixedPosition.cs
- BamlTreeMap.cs
- ItemsControlAutomationPeer.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlElementAttributes.cs
- EventLogConfiguration.cs
- PropertyChange.cs
- SoapAttributeOverrides.cs
- CodeMethodMap.cs
- FixedTextContainer.cs
- ComPlusServiceHost.cs
- DataMemberConverter.cs
- XmlSchemaExporter.cs
- WebHttpSecurityElement.cs
- RepeaterItemEventArgs.cs
- DataGridToolTip.cs
- BooleanToVisibilityConverter.cs
- SchemaTableOptionalColumn.cs
- ResourceManagerWrapper.cs
- DbMetaDataColumnNames.cs
- SafeCryptContextHandle.cs
- EventMetadata.cs
- RowBinding.cs
- ResXResourceReader.cs
- TypeCacheManager.cs
- QuadraticBezierSegment.cs
- SslStream.cs
- MatrixKeyFrameCollection.cs
- DelegateBodyWriter.cs
- ASCIIEncoding.cs
- LongMinMaxAggregationOperator.cs
- CompilerResults.cs
- CaseDesigner.xaml.cs
- DependencyPropertyKind.cs
- InternalConfigConfigurationFactory.cs
- Pair.cs
- UIElementPropertyUndoUnit.cs
- PropertyNames.cs
- BasicAsyncResult.cs
- FreeFormDragDropManager.cs
- RuntimeHandles.cs