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
- SHA256.cs
- CheckBoxBaseAdapter.cs
- EntityWrapper.cs
- tibetanshape.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- NotImplementedException.cs
- _RequestCacheProtocol.cs
- OdbcCommand.cs
- WeakRefEnumerator.cs
- AssertSection.cs
- TreeNodeCollectionEditor.cs
- PolicyStatement.cs
- FixedPageStructure.cs
- Column.cs
- XmlQueryContext.cs
- MulticastOption.cs
- RecognizedWordUnit.cs
- TableLayoutPanel.cs
- ResourceExpressionBuilder.cs
- HtmlHead.cs
- TagMapCollection.cs
- ContentElement.cs
- PageAdapter.cs
- ParameterDataSourceExpression.cs
- CFStream.cs
- StylusLogic.cs
- PeerCollaboration.cs
- TreeIterators.cs
- SqlParameterCollection.cs
- AdRotator.cs
- DateTimeValueSerializerContext.cs
- NopReturnReader.cs
- _Rfc2616CacheValidators.cs
- SetStoryboardSpeedRatio.cs
- EntityViewContainer.cs
- SolidColorBrush.cs
- SynchronizationLockException.cs
- OutputCacheModule.cs
- WrappedDispatcherException.cs
- ECDiffieHellmanCng.cs
- OdbcFactory.cs
- FormsAuthenticationEventArgs.cs
- MappingException.cs
- Win32MouseDevice.cs
- PropertiesTab.cs
- RegionIterator.cs
- PnrpPermission.cs
- MethodImplAttribute.cs
- DbConnectionStringCommon.cs
- EntityClassGenerator.cs
- EntityDesignerBuildProvider.cs
- ConstraintManager.cs
- EntryWrittenEventArgs.cs
- FullTextLine.cs
- IIS7WorkerRequest.cs
- DrawingAttributesDefaultValueFactory.cs
- EdmItemError.cs
- SwitchLevelAttribute.cs
- ToolStripLabel.cs
- HttpException.cs
- Enumerable.cs
- TextSelectionHighlightLayer.cs
- MailDefinition.cs
- DataServiceContext.cs
- RIPEMD160Managed.cs
- GroupBoxAutomationPeer.cs
- PrimitiveSchema.cs
- CounterSample.cs
- WebEventCodes.cs
- XmlAutoDetectWriter.cs
- RegexEditorDialog.cs
- SmtpNtlmAuthenticationModule.cs
- Normalization.cs
- DrawingServices.cs
- Track.cs
- PersonalizationProviderCollection.cs
- HtmlTernaryTree.cs
- safesecurityhelperavalon.cs
- ReadOnlyDictionary.cs
- WindowsGrip.cs
- IOThreadTimer.cs
- DynamicValueConverter.cs
- SctClaimDictionary.cs
- DateTimeOffsetConverter.cs
- CopyOnWriteList.cs
- CapabilitiesRule.cs
- SmiEventSink_Default.cs
- LinqDataSourceDisposeEventArgs.cs
- WindowsScroll.cs
- _PooledStream.cs
- ProtectedProviderSettings.cs
- SpellerStatusTable.cs
- CallbackDebugBehavior.cs
- WinInet.cs
- DictionaryManager.cs
- CodeNamespaceCollection.cs
- DetectRunnableInstancesTask.cs
- WebPartChrome.cs
- XmlLanguageConverter.cs
- NumberFunctions.cs