Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- shaperfactoryquerycachekey.cs
- InputDevice.cs
- HtmlTextArea.cs
- QueryOutputWriter.cs
- SingleAnimationBase.cs
- SqlInternalConnection.cs
- DATA_BLOB.cs
- DataGridViewTopRowAccessibleObject.cs
- DocumentPageHost.cs
- MultiSelectRootGridEntry.cs
- FileLogRecordEnumerator.cs
- DurableInstanceProvider.cs
- RestClientProxyHandler.cs
- MetadataHelper.cs
- ReliableMessagingVersionConverter.cs
- CollectionChangedEventManager.cs
- ModulesEntry.cs
- UnsafeNativeMethods.cs
- Button.cs
- ClassGenerator.cs
- RemotingServices.cs
- BehaviorDragDropEventArgs.cs
- TaskFormBase.cs
- JsonServiceDocumentSerializer.cs
- ValueType.cs
- Path.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- FixedFlowMap.cs
- DesignTimeTemplateParser.cs
- NamespaceTable.cs
- XmlAttributeProperties.cs
- ModelPerspective.cs
- followingquery.cs
- IntranetCredentialPolicy.cs
- DataGridViewColumnEventArgs.cs
- SearchExpression.cs
- UrlMapping.cs
- SymLanguageType.cs
- FormsAuthenticationTicket.cs
- CustomBinding.cs
- RemoteWebConfigurationHost.cs
- CodeChecksumPragma.cs
- TcpStreams.cs
- ObjectDataSourceStatusEventArgs.cs
- ShapeTypeface.cs
- StringSorter.cs
- KeyProperty.cs
- MatchingStyle.cs
- ComponentResourceManager.cs
- QilName.cs
- ReadOnlyCollection.cs
- Geometry.cs
- BookmarkCallbackWrapper.cs
- ContextStack.cs
- XmlChildEnumerator.cs
- CmsUtils.cs
- OneWayBindingElementImporter.cs
- TextRange.cs
- DetectRunnableInstancesTask.cs
- DataStorage.cs
- ObjectFullSpanRewriter.cs
- SafeRightsManagementHandle.cs
- Guid.cs
- Converter.cs
- MultiSelector.cs
- SolidBrush.cs
- CollectionsUtil.cs
- ActiveXHost.cs
- TagPrefixInfo.cs
- EntityContainerAssociationSetEnd.cs
- SessionStateItemCollection.cs
- ReflectionUtil.cs
- BuildProviderCollection.cs
- ValueQuery.cs
- XmlSchemaExporter.cs
- ThumbAutomationPeer.cs
- RotateTransform3D.cs
- XmlSchemaSet.cs
- HttpContext.cs
- DataServiceClientException.cs
- ApplicationProxyInternal.cs
- ScriptControlManager.cs
- TdsParserSessionPool.cs
- XPathExpr.cs
- MetaModel.cs
- NameNode.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataRelationPropertyDescriptor.cs
- EventMappingSettingsCollection.cs
- CoreSwitches.cs
- ToolStripItemTextRenderEventArgs.cs
- CodeCompileUnit.cs
- HandledMouseEvent.cs
- OrderToken.cs
- QilReference.cs
- ControlBuilder.cs
- JsonDeserializer.cs
- FileDataSourceCache.cs
- UIElementIsland.cs
- ErrorInfoXmlDocument.cs