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
- BindingCompleteEventArgs.cs
- SourceItem.cs
- unsafenativemethodsother.cs
- MemberExpression.cs
- SqlNotificationRequest.cs
- UndoUnit.cs
- ObfuscationAttribute.cs
- CustomCategoryAttribute.cs
- __Error.cs
- StoragePropertyMapping.cs
- LocalFileSettingsProvider.cs
- BindingValueChangedEventArgs.cs
- _RegBlobWebProxyDataBuilder.cs
- CharEnumerator.cs
- EntityDataSource.cs
- Utilities.cs
- ExitEventArgs.cs
- BaseParagraph.cs
- InvalidDataException.cs
- WindowsTokenRoleProvider.cs
- DirectoryObjectSecurity.cs
- SimpleBitVector32.cs
- EdmTypeAttribute.cs
- ZipArchive.cs
- BinHexEncoder.cs
- CodeIndexerExpression.cs
- JoinElimination.cs
- DataGridViewToolTip.cs
- UrlPath.cs
- SmtpMail.cs
- AnnotationHighlightLayer.cs
- WizardPanel.cs
- ConfigurationSettings.cs
- JsonWriter.cs
- BitmapImage.cs
- CompilationSection.cs
- GridPattern.cs
- Win32Native.cs
- CornerRadiusConverter.cs
- X509WindowsSecurityToken.cs
- MouseOverProperty.cs
- ListViewUpdateEventArgs.cs
- DataGridColumnsPage.cs
- XmlAttributeProperties.cs
- DataSourceXmlSerializer.cs
- IfAction.cs
- SendSecurityHeaderElement.cs
- StringBuilder.cs
- ImageListStreamer.cs
- Type.cs
- XMLSchema.cs
- Base64Encoder.cs
- SafeCryptContextHandle.cs
- PipelineModuleStepContainer.cs
- InkCollectionBehavior.cs
- ButtonRenderer.cs
- ReadOnlyHierarchicalDataSource.cs
- ContentIterators.cs
- DataServiceProviderMethods.cs
- ExpressionParser.cs
- DBDataPermissionAttribute.cs
- SelectionUIHandler.cs
- WsdlImporter.cs
- SourceLocation.cs
- ImageCodecInfo.cs
- TraceInternal.cs
- EFTableProvider.cs
- SqlFunctionAttribute.cs
- InternalCache.cs
- RegisterResponseInfo.cs
- ActivitySurrogateSelector.cs
- ByteAnimationBase.cs
- RepeaterItemEventArgs.cs
- SystemNetworkInterface.cs
- ConfigXmlWhitespace.cs
- FixedSOMContainer.cs
- FlowDecisionLabelFeature.cs
- XmlDomTextWriter.cs
- PreviousTrackingServiceAttribute.cs
- Int32AnimationBase.cs
- Grid.cs
- IpcManager.cs
- GeneralTransform2DTo3D.cs
- ListViewGroupConverter.cs
- XmlSchemaElement.cs
- BookmarkEventArgs.cs
- WebPartCatalogAddVerb.cs
- SqlClientPermission.cs
- DropSource.cs
- BoundsDrawingContextWalker.cs
- DiagnosticsConfiguration.cs
- DependencyPropertyConverter.cs
- WindowsComboBox.cs
- Endpoint.cs
- TimeoutValidationAttribute.cs
- TextEffectResolver.cs
- TransactionTable.cs
- ThreadExceptionEvent.cs
- XmlCustomFormatter.cs
- DataException.cs