Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ThreadStartException.cs
- ICspAsymmetricAlgorithm.cs
- InstanceLockedException.cs
- FlatButtonAppearance.cs
- PopupEventArgs.cs
- StandardMenuStripVerb.cs
- ExecutionEngineException.cs
- JsonClassDataContract.cs
- XmlWellformedWriterHelpers.cs
- StrokeSerializer.cs
- EmissiveMaterial.cs
- AuthenticatedStream.cs
- RenderData.cs
- LocatorGroup.cs
- MultiPageTextView.cs
- LogicalChannel.cs
- BitmapMetadata.cs
- PageContent.cs
- ReceiveSecurityHeader.cs
- MaskInputRejectedEventArgs.cs
- SqlErrorCollection.cs
- ParameterModifier.cs
- TypeLibConverter.cs
- CellCreator.cs
- MailMessageEventArgs.cs
- VoiceInfo.cs
- OracleException.cs
- RadioButton.cs
- DoubleStorage.cs
- FilterQuery.cs
- ProcessInputEventArgs.cs
- DataRecordInternal.cs
- FileDataSourceCache.cs
- ExtensibleSyndicationObject.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ConstNode.cs
- PeerApplication.cs
- MessageDirection.cs
- Condition.cs
- SchemaContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlUrlResolver.cs
- FeatureManager.cs
- TimelineGroup.cs
- BuilderInfo.cs
- OptimalBreakSession.cs
- MiniMapControl.xaml.cs
- ProtectedConfiguration.cs
- XmlDownloadManager.cs
- DescendentsWalkerBase.cs
- COM2ComponentEditor.cs
- BitmapEffectGroup.cs
- M3DUtil.cs
- ExtendedPropertyDescriptor.cs
- SymLanguageVendor.cs
- TypeRestriction.cs
- Assembly.cs
- WindowsSolidBrush.cs
- UnsafeNativeMethods.cs
- UnsafeNativeMethods.cs
- DecimalStorage.cs
- SqlClientFactory.cs
- PartManifestEntry.cs
- CanonicalFontFamilyReference.cs
- SuppressMergeCheckAttribute.cs
- Int32Converter.cs
- ReferentialConstraintRoleElement.cs
- BitmapMetadataEnumerator.cs
- FormView.cs
- odbcmetadatafactory.cs
- MissingFieldException.cs
- WizardForm.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ZipIOBlockManager.cs
- SystemIcmpV4Statistics.cs
- UInt64.cs
- EditBehavior.cs
- ThrowHelper.cs
- Freezable.cs
- Sql8ConformanceChecker.cs
- StrokeNodeEnumerator.cs
- Wizard.cs
- SoapFaultCodes.cs
- TransactionManager.cs
- EntityClassGenerator.cs
- PerformanceCounterPermissionAttribute.cs
- PresentationAppDomainManager.cs
- DisposableCollectionWrapper.cs
- SystemBrushes.cs
- HttpHeaderCollection.cs
- WinEventQueueItem.cs
- StretchValidation.cs
- DbConnectionPoolCounters.cs
- _BaseOverlappedAsyncResult.cs
- DataGridViewCellPaintingEventArgs.cs
- Int16.cs
- CqlQuery.cs
- BinaryUtilClasses.cs
- PersonalizationProviderCollection.cs
- StateElement.cs