Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ResXDataNode.cs
- SqlConnectionHelper.cs
- SQLDateTimeStorage.cs
- XmlWrappingWriter.cs
- XmlDesigner.cs
- StringCollection.cs
- SqlCrossApplyToCrossJoin.cs
- Mutex.cs
- FormViewInsertEventArgs.cs
- CorrelationResolver.cs
- ComponentCollection.cs
- XPathPatternParser.cs
- FacetValues.cs
- ConnectionProviderAttribute.cs
- ListView.cs
- TextCharacters.cs
- ConstantSlot.cs
- NullableFloatAverageAggregationOperator.cs
- Clipboard.cs
- IssuedTokenServiceCredential.cs
- ConditionBrowserDialog.cs
- ScriptComponentDescriptor.cs
- bidPrivateBase.cs
- RootBuilder.cs
- DirectoryRedirect.cs
- ToolStripStatusLabel.cs
- TextElementEditingBehaviorAttribute.cs
- ContextStaticAttribute.cs
- ToRequest.cs
- MergablePropertyAttribute.cs
- ObjectDataProvider.cs
- DrawingImage.cs
- NotifyInputEventArgs.cs
- TabControlCancelEvent.cs
- FormViewCommandEventArgs.cs
- Decorator.cs
- QuaternionAnimation.cs
- DataError.cs
- Vertex.cs
- MatrixUtil.cs
- ProfilePropertyMetadata.cs
- TypeSystem.cs
- CompilerScope.Storage.cs
- MessageQueuePermissionAttribute.cs
- ApplicationContext.cs
- PointLight.cs
- TitleStyle.cs
- MdiWindowListItemConverter.cs
- ConfigXmlAttribute.cs
- TextTreeNode.cs
- StyleSheetComponentEditor.cs
- Figure.cs
- TransportConfigurationTypeElementCollection.cs
- SynchronousChannelMergeEnumerator.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CheckBoxList.cs
- IResourceProvider.cs
- RetriableClipboard.cs
- AssemblyNameProxy.cs
- ComponentCommands.cs
- arabicshape.cs
- StreamWithDictionary.cs
- SoapEnumAttribute.cs
- ElementFactory.cs
- TableItemPattern.cs
- TextMarkerSource.cs
- SQLStringStorage.cs
- UpdateCompiler.cs
- SecurityUtils.cs
- XmlRawWriter.cs
- ExtentKey.cs
- ProgressBar.cs
- PagePropertiesChangingEventArgs.cs
- TextContainer.cs
- JavaScriptSerializer.cs
- PerformanceCounterPermissionEntry.cs
- InputLangChangeRequestEvent.cs
- LocalizabilityAttribute.cs
- EntityContainerAssociationSetEnd.cs
- XmlIlTypeHelper.cs
- ILGenerator.cs
- Native.cs
- IsolatedStorageException.cs
- PolyBezierSegmentFigureLogic.cs
- _SSPIWrapper.cs
- InstanceData.cs
- DelegateBodyWriter.cs
- Pool.cs
- HiddenField.cs
- WebServicesInteroperability.cs
- Rule.cs
- Environment.cs
- SourceFileBuildProvider.cs
- OpenTypeLayout.cs
- KnownAssembliesSet.cs
- PathNode.cs
- sqlmetadatafactory.cs
- RegexCompilationInfo.cs
- EmptyElement.cs
- PerformanceCounterManager.cs