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
- PopupControlService.cs
- SmtpClient.cs
- BasicViewGenerator.cs
- WebPartTransformerCollection.cs
- RangeBaseAutomationPeer.cs
- UnsafeNativeMethods.cs
- SafeCertificateStore.cs
- DeflateStream.cs
- WorkflowInstanceExtensionManager.cs
- InteropDesigner.xaml.cs
- CharacterHit.cs
- DES.cs
- HttpApplicationFactory.cs
- SqlProviderServices.cs
- hebrewshape.cs
- OdbcError.cs
- OleDbException.cs
- EventToken.cs
- PauseStoryboard.cs
- ReachFixedPageSerializer.cs
- BufferModesCollection.cs
- IconConverter.cs
- ProviderBase.cs
- ParentUndoUnit.cs
- RegistryPermission.cs
- XmlNode.cs
- CommandCollectionEditor.cs
- SessionPageStateSection.cs
- BufferModesCollection.cs
- PathTooLongException.cs
- Inflater.cs
- SortKey.cs
- MapPathBasedVirtualPathProvider.cs
- TimelineClockCollection.cs
- DesignerDataView.cs
- NamespaceMapping.cs
- HtmlImage.cs
- SQLInt16Storage.cs
- ExpressionBuilder.cs
- BamlLocalizabilityResolver.cs
- RuntimeIdentifierPropertyAttribute.cs
- PathTooLongException.cs
- KnownBoxes.cs
- DrawingVisual.cs
- BamlBinaryWriter.cs
- XmlC14NWriter.cs
- WebControlsSection.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ReturnEventArgs.cs
- KnownBoxes.cs
- EasingKeyFrames.cs
- PrintControllerWithStatusDialog.cs
- DateTimeOffsetStorage.cs
- BinHexDecoder.cs
- PersonalizationProviderCollection.cs
- CreateParams.cs
- propertyentry.cs
- HttpCacheVary.cs
- LicenseProviderAttribute.cs
- ParseHttpDate.cs
- WebPartManager.cs
- HttpListenerContext.cs
- ProcessInputEventArgs.cs
- CommonDialog.cs
- X509Utils.cs
- SqlNode.cs
- CaseInsensitiveHashCodeProvider.cs
- SingleAnimationUsingKeyFrames.cs
- PiiTraceSource.cs
- KnownTypeHelper.cs
- Baml2006ReaderFrame.cs
- CodeEntryPointMethod.cs
- SmtpLoginAuthenticationModule.cs
- CachedBitmap.cs
- PageStatePersister.cs
- PerformanceCounterCategory.cs
- XmlDataProvider.cs
- XmlEntityReference.cs
- WebBrowserBase.cs
- ConfigurationException.cs
- ResourceAssociationTypeEnd.cs
- TimeStampChecker.cs
- XamlClipboardData.cs
- SessionIDManager.cs
- OpenTypeCommon.cs
- BinaryCommonClasses.cs
- ScriptingWebServicesSectionGroup.cs
- Application.cs
- MinimizableAttributeTypeConverter.cs
- ProfilePropertyNameValidator.cs
- GZipStream.cs
- BaseParagraph.cs
- XmlTextWriter.cs
- Enum.cs
- PathFigure.cs
- CatalogZoneBase.cs
- ExtentCqlBlock.cs
- ColorConvertedBitmap.cs
- XmlSigningNodeWriter.cs
- Exceptions.cs