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
- ResXResourceReader.cs
- UrlMappingsModule.cs
- ShaderEffect.cs
- VisualStyleElement.cs
- StylusPointPropertyInfoDefaults.cs
- initElementDictionary.cs
- DataTransferEventArgs.cs
- OpenFileDialog.cs
- AccessedThroughPropertyAttribute.cs
- DeflateInput.cs
- VerificationException.cs
- PagesSection.cs
- DefaultObjectSerializer.cs
- TextEditorSpelling.cs
- QueryOperator.cs
- CodeLabeledStatement.cs
- ContentDesigner.cs
- BindingSourceDesigner.cs
- SmtpDigestAuthenticationModule.cs
- TypedElement.cs
- ScrollProviderWrapper.cs
- ToolStripMenuItem.cs
- JpegBitmapDecoder.cs
- X509UI.cs
- MouseButtonEventArgs.cs
- FrameworkTextComposition.cs
- SystemEvents.cs
- TextAnchor.cs
- SessionStateItemCollection.cs
- SQLByteStorage.cs
- StructuralType.cs
- LogLogRecord.cs
- UIAgentCrashedException.cs
- ConnectionProviderAttribute.cs
- RequestQueryParser.cs
- SqlProvider.cs
- SQLChars.cs
- ComboBoxRenderer.cs
- TypeInitializationException.cs
- SqlDeflator.cs
- ModifierKeysConverter.cs
- TextLineBreak.cs
- IIS7ConfigurationLoader.cs
- PenLineCapValidation.cs
- DataGridViewCellMouseEventArgs.cs
- CalendarDateRangeChangingEventArgs.cs
- ProtocolsConfigurationHandler.cs
- EntityDataSourceDesignerHelper.cs
- LogConverter.cs
- PropertyPushdownHelper.cs
- SqlParameterizer.cs
- SplineKeyFrames.cs
- TextRunProperties.cs
- DataPagerFieldItem.cs
- ProxyBuilder.cs
- SupportsEventValidationAttribute.cs
- FunctionOverloadResolver.cs
- DefaultCommandConverter.cs
- ConfigXmlText.cs
- ZipPackagePart.cs
- IndependentlyAnimatedPropertyMetadata.cs
- LicenseContext.cs
- XmlQuerySequence.cs
- SourceLineInfo.cs
- DBNull.cs
- Token.cs
- TextUtf8RawTextWriter.cs
- OracleDataReader.cs
- Resources.Designer.cs
- DataKeyArray.cs
- TemplatePartAttribute.cs
- ModuleConfigurationInfo.cs
- SaveFileDialog.cs
- DataGridSortingEventArgs.cs
- ContainerAction.cs
- LicenseContext.cs
- EntityEntry.cs
- User.cs
- base64Transforms.cs
- ReferenceEqualityComparer.cs
- InnerItemCollectionView.cs
- Cursors.cs
- WebConvert.cs
- Vector3DAnimation.cs
- XmlSchemaSimpleContent.cs
- DrawTreeNodeEventArgs.cs
- HwndSourceParameters.cs
- DataBindingCollection.cs
- FunctionQuery.cs
- SessionViewState.cs
- RegexReplacement.cs
- FunctionQuery.cs
- TextSyndicationContentKindHelper.cs
- EmbeddedMailObjectCollectionEditor.cs
- RewritingProcessor.cs
- RenderTargetBitmap.cs
- GeneralTransform.cs
- ValidationUtility.cs
- BevelBitmapEffect.cs
- VersionedStreamOwner.cs