Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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.
//----------------------------------------------------------------------------
//
// 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
- GridViewCellAutomationPeer.cs
- OrElse.cs
- DataGridViewTopLeftHeaderCell.cs
- SignatureToken.cs
- GroupItem.cs
- SharingService.cs
- StringDictionary.cs
- HttpListenerTimeoutManager.cs
- SessionEndedEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- MenuItemBinding.cs
- HostingPreferredMapPath.cs
- SpellerInterop.cs
- TextDecorationUnitValidation.cs
- OleTxTransaction.cs
- NewItemsContextMenuStrip.cs
- Latin1Encoding.cs
- VisualBasic.cs
- SoapFaultCodes.cs
- DesignParameter.cs
- RootAction.cs
- TextSpanModifier.cs
- PingReply.cs
- ViewEvent.cs
- DataTableMapping.cs
- CodeTryCatchFinallyStatement.cs
- ArrayConverter.cs
- DiscardableAttribute.cs
- ResourcePool.cs
- SoapObjectWriter.cs
- ClientConfigurationSystem.cs
- MobileUITypeEditor.cs
- PrintDocument.cs
- HandlerBase.cs
- SingleResultAttribute.cs
- KeyBinding.cs
- ConfigurationManagerHelperFactory.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Int32RectConverter.cs
- ContainerUIElement3D.cs
- AddressHeaderCollectionElement.cs
- AVElementHelper.cs
- TextComposition.cs
- TemplatedMailWebEventProvider.cs
- UIElement3D.cs
- HtmlInputPassword.cs
- BridgeDataRecord.cs
- ParameterCollectionEditorForm.cs
- ClassGenerator.cs
- DeferredSelectedIndexReference.cs
- BuildProviderCollection.cs
- DataGridItemCollection.cs
- Lasso.cs
- Viewport2DVisual3D.cs
- ScrollChrome.cs
- TraceLog.cs
- PageContentCollection.cs
- PenLineJoinValidation.cs
- CompilerScopeManager.cs
- TextBoxBase.cs
- MetadataUtilsSmi.cs
- ApplicationServicesHostFactory.cs
- CompilerParameters.cs
- DeferrableContent.cs
- Compiler.cs
- WindowsRegion.cs
- DragCompletedEventArgs.cs
- DataGridBoolColumn.cs
- HandlerBase.cs
- SoapAttributeOverrides.cs
- Int32RectConverter.cs
- XmlSchemaAll.cs
- ToolTip.cs
- ObjectSecurity.cs
- SiteMembershipCondition.cs
- SafeHandle.cs
- HwndSourceParameters.cs
- TextBoxBase.cs
- DocumentApplicationDocumentViewer.cs
- DocumentOrderComparer.cs
- String.cs
- KeyConverter.cs
- MetadataExporter.cs
- XmlAttribute.cs
- OdbcReferenceCollection.cs
- sqlinternaltransaction.cs
- CrossAppDomainChannel.cs
- TreeNodeStyle.cs
- StateDesigner.CommentLayoutGlyph.cs
- CodeThrowExceptionStatement.cs
- WinEventHandler.cs
- AsyncOperation.cs
- SecurityMessageProperty.cs
- ConstraintConverter.cs
- Wizard.cs
- Subset.cs
- TextCompositionEventArgs.cs
- TargetConverter.cs
- DependencyPropertyHelper.cs
- PriorityQueue.cs