Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ElapsedEventArgs.cs
- ParallelEnumerable.cs
- WebPartsSection.cs
- MetabaseSettingsIis7.cs
- VisualTreeUtils.cs
- ObjectConverter.cs
- SynchronizingStream.cs
- DataReaderContainer.cs
- XsdBuilder.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DataGridItemCollection.cs
- TextBlockAutomationPeer.cs
- AssociationSet.cs
- DependsOnAttribute.cs
- DesignBindingEditor.cs
- TextFormatterImp.cs
- CollectionEditorDialog.cs
- ConfigurationStrings.cs
- ElementUtil.cs
- State.cs
- RunWorkerCompletedEventArgs.cs
- Adorner.cs
- HttpCookieCollection.cs
- EntitySqlQueryState.cs
- StreamReader.cs
- BaseDataBoundControl.cs
- TemplateParser.cs
- StdValidatorsAndConverters.cs
- DbDataAdapter.cs
- FilteredReadOnlyMetadataCollection.cs
- IncrementalCompileAnalyzer.cs
- WindowsScroll.cs
- CryptoApi.cs
- Walker.cs
- NamespaceEmitter.cs
- PartBasedPackageProperties.cs
- EventLogEntryCollection.cs
- ObjectConverter.cs
- BitmapEffectDrawing.cs
- FilteredAttributeCollection.cs
- NumberSubstitution.cs
- BufferedGenericXmlSecurityToken.cs
- CmsUtils.cs
- FontConverter.cs
- IteratorDescriptor.cs
- SemanticBasicElement.cs
- StandardOleMarshalObject.cs
- ErrorInfoXmlDocument.cs
- XmlMembersMapping.cs
- PartBasedPackageProperties.cs
- sitestring.cs
- Lasso.cs
- MsmqIntegrationBinding.cs
- OletxResourceManager.cs
- ExternalException.cs
- TextServicesManager.cs
- List.cs
- EmbeddedMailObject.cs
- LinqDataSource.cs
- ConnectorRouter.cs
- SqlSelectStatement.cs
- GenericTypeParameterBuilder.cs
- PKCS1MaskGenerationMethod.cs
- TypeConverterHelper.cs
- Certificate.cs
- HtmlTableRowCollection.cs
- ZipPackagePart.cs
- Validator.cs
- ProtectedConfigurationSection.cs
- ProviderBase.cs
- Decimal.cs
- ErrorLog.cs
- UIPermission.cs
- Classification.cs
- WinEventQueueItem.cs
- HtmlInputRadioButton.cs
- InternalConfigEventArgs.cs
- PersistenceTypeAttribute.cs
- AccessControlEntry.cs
- clipboard.cs
- EventDrivenDesigner.cs
- SpellerInterop.cs
- _SslStream.cs
- SiteMapDataSourceView.cs
- LeaseManager.cs
- IndexingContentUnit.cs
- TableLayoutRowStyleCollection.cs
- Image.cs
- PartialCachingControl.cs
- GlyphingCache.cs
- StateDesignerConnector.cs
- Helpers.cs
- ZoomPercentageConverter.cs
- UnaryOperationBinder.cs
- BinaryObjectReader.cs
- RevocationPoint.cs
- Column.cs
- PresentationTraceSources.cs
- TranslateTransform.cs
- ADMembershipUser.cs