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
- PersonalizationStateQuery.cs
- InvalidFilterCriteriaException.cs
- IndexedEnumerable.cs
- NativeMethods.cs
- Transform3D.cs
- InputReport.cs
- TreeViewImageIndexConverter.cs
- ThreadSafeList.cs
- ChannelListenerBase.cs
- ExpressionBindingCollection.cs
- CompileXomlTask.cs
- SqlWebEventProvider.cs
- ConversionContext.cs
- ConfigurationStrings.cs
- KeyedPriorityQueue.cs
- WebPartMovingEventArgs.cs
- DateTimeOffset.cs
- ViewCellRelation.cs
- BindingListCollectionView.cs
- OleDbStruct.cs
- XmlSyndicationContent.cs
- DataGridViewCellLinkedList.cs
- DeferredBinaryDeserializerExtension.cs
- IQueryable.cs
- SqlDataSourceDesigner.cs
- SiteMapHierarchicalDataSourceView.cs
- CodeObject.cs
- DbConnectionPoolCounters.cs
- ExclusiveTcpListener.cs
- PrimarySelectionAdorner.cs
- SurrogateDataContract.cs
- ClientEventManager.cs
- UserUseLicenseDictionaryLoader.cs
- TextSearch.cs
- MethodBuilderInstantiation.cs
- TypeToken.cs
- AsymmetricKeyExchangeFormatter.cs
- DesignTimeVisibleAttribute.cs
- hebrewshape.cs
- SudsCommon.cs
- KeyBinding.cs
- IgnoreFileBuildProvider.cs
- RangeValuePattern.cs
- StateRuntime.cs
- ObjectKeyFrameCollection.cs
- XmlDataImplementation.cs
- UserPersonalizationStateInfo.cs
- RequestCacheValidator.cs
- TableRowCollection.cs
- XmlDictionaryReader.cs
- Win32SafeHandles.cs
- Fault.cs
- ShutDownListener.cs
- ClientType.cs
- x509utils.cs
- InputDevice.cs
- SplineKeyFrames.cs
- OracleRowUpdatedEventArgs.cs
- DataMemberFieldConverter.cs
- PageRequestManager.cs
- BridgeDataRecord.cs
- ComUdtElementCollection.cs
- DeclarationUpdate.cs
- _NtlmClient.cs
- ScriptReferenceEventArgs.cs
- MemberHolder.cs
- ChannelSinkStacks.cs
- QueryOpeningEnumerator.cs
- TextTreeInsertElementUndoUnit.cs
- LocalsItemDescription.cs
- NavigationPropertyEmitter.cs
- SortedDictionary.cs
- SamlAssertion.cs
- XPathNodeList.cs
- CommandHelper.cs
- TextRangeAdaptor.cs
- TypeUtils.cs
- ReceiveActivityDesigner.cs
- BitmapMetadata.cs
- FactoryGenerator.cs
- DataBinding.cs
- RightsManagementPermission.cs
- CheckBoxList.cs
- IFormattable.cs
- DashStyle.cs
- TdsParserSafeHandles.cs
- ListBox.cs
- StandardToolWindows.cs
- WebPartEditorOkVerb.cs
- Select.cs
- TextServicesCompartment.cs
- ColorAnimationBase.cs
- SqlCaseSimplifier.cs
- SubstitutionResponseElement.cs
- COM2AboutBoxPropertyDescriptor.cs
- BitVec.cs
- MultiDataTrigger.cs
- Model3D.cs
- URLAttribute.cs
- ScriptResourceDefinition.cs