Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Markup / InternalTypeHelper.cs / 1305600 / 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
- HighlightComponent.cs
- TemplateModeChangedEventArgs.cs
- Form.cs
- BitmapEditor.cs
- WindowsGraphics.cs
- DesignerUtils.cs
- ConfigErrorGlyph.cs
- WebPartHeaderCloseVerb.cs
- WsatStrings.cs
- Object.cs
- BindingContext.cs
- UpdatableWrapper.cs
- FixedTextContainer.cs
- DesignOnlyAttribute.cs
- SqlIdentifier.cs
- BamlLocalizer.cs
- HierarchicalDataSourceControl.cs
- Int16Animation.cs
- assemblycache.cs
- MediaElement.cs
- ParameterRefs.cs
- SettingsProperty.cs
- DocumentViewerHelper.cs
- ProjectionPruner.cs
- TargetConverter.cs
- DescriptionAttribute.cs
- latinshape.cs
- DetailsViewRow.cs
- ScopelessEnumAttribute.cs
- ZipPackagePart.cs
- LocalizableResourceBuilder.cs
- ApplicationServiceHelper.cs
- SchemaName.cs
- XmlObjectSerializerContext.cs
- NetMsmqBinding.cs
- IPEndPointCollection.cs
- BrowserCapabilitiesCompiler.cs
- ContentTextAutomationPeer.cs
- CodeCompileUnit.cs
- PagesChangedEventArgs.cs
- infer.cs
- StringWriter.cs
- WindowsListViewItemCheckBox.cs
- SystemNetHelpers.cs
- LocalizationComments.cs
- ToggleProviderWrapper.cs
- ZoneLinkButton.cs
- EventEntry.cs
- SerializationTrace.cs
- XmlQualifiedName.cs
- BitmapFrameEncode.cs
- EntityDesignerDataSourceView.cs
- ConnectionInterfaceCollection.cs
- RuntimeConfig.cs
- ParameterCollection.cs
- ScaleTransform3D.cs
- TableLayoutPanelResizeGlyph.cs
- SafeCloseHandleCritical.cs
- Unit.cs
- MimeTypeAttribute.cs
- QueryStringHandler.cs
- ComponentDispatcherThread.cs
- DataBindingHandlerAttribute.cs
- LinqDataSourceStatusEventArgs.cs
- TriggerCollection.cs
- CreateUserWizard.cs
- DbParameterHelper.cs
- SQLInt64Storage.cs
- XamlReader.cs
- DBSqlParserTableCollection.cs
- ClientSponsor.cs
- _HelperAsyncResults.cs
- ExpressionParser.cs
- TableLayoutStyle.cs
- Bitmap.cs
- Calendar.cs
- GridViewColumnHeaderAutomationPeer.cs
- GACIdentityPermission.cs
- WebPartEditorOkVerb.cs
- MetadataPropertyvalue.cs
- SecurityRuntime.cs
- DnsElement.cs
- AuthorizationSection.cs
- EllipseGeometry.cs
- RuleInfoComparer.cs
- OpenTypeLayout.cs
- FilterUserControlBase.cs
- HyperLinkColumn.cs
- HttpConfigurationSystem.cs
- StreamReader.cs
- VarRefManager.cs
- RankException.cs
- RegexWorker.cs
- AsymmetricSignatureDeformatter.cs
- SiteMapSection.cs
- ConstraintConverter.cs
- _NestedMultipleAsyncResult.cs
- WebColorConverter.cs
- HttpException.cs
- SettingsPropertyWrongTypeException.cs