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
- ArcSegment.cs
- TypeInfo.cs
- CmsUtils.cs
- ExceptionNotification.cs
- FileLogRecordEnumerator.cs
- XmlILModule.cs
- HttpCacheVary.cs
- HitTestWithPointDrawingContextWalker.cs
- _TimerThread.cs
- SqlGatherProducedAliases.cs
- SQLBytes.cs
- SettingsContext.cs
- CodeArrayIndexerExpression.cs
- TemplateContentLoader.cs
- Control.cs
- GraphicsPath.cs
- WindowInteropHelper.cs
- DiscoveryDocumentReference.cs
- xml.cs
- ListChangedEventArgs.cs
- PropertyNames.cs
- PrivilegedConfigurationManager.cs
- OrderedHashRepartitionStream.cs
- SecurityCredentialsManager.cs
- AspProxy.cs
- IODescriptionAttribute.cs
- TypePropertyEditor.cs
- CellParagraph.cs
- EntityDataSourceReferenceGroup.cs
- Proxy.cs
- DataGridItem.cs
- MimeMultiPart.cs
- ResourceIDHelper.cs
- BinaryWriter.cs
- TextureBrush.cs
- RichTextBoxAutomationPeer.cs
- DataContractSerializerServiceBehavior.cs
- ScriptManagerProxy.cs
- PenContext.cs
- SurrogateSelector.cs
- ImageList.cs
- RedirectionProxy.cs
- PeerFlooder.cs
- CorrelationKey.cs
- Visual3DCollection.cs
- VideoDrawing.cs
- DirectoryNotFoundException.cs
- PlanCompiler.cs
- MetadataCache.cs
- NetworkStream.cs
- ConfigurationValue.cs
- QuotedPrintableStream.cs
- BooleanToVisibilityConverter.cs
- SizeChangedInfo.cs
- DataContractJsonSerializerOperationBehavior.cs
- DatePickerAutomationPeer.cs
- CommonBehaviorsSection.cs
- RequestSecurityTokenResponse.cs
- Model3D.cs
- VerificationAttribute.cs
- PropertyEmitter.cs
- EventBuilder.cs
- smtpconnection.cs
- CommonXSendMessage.cs
- ContractListAdapter.cs
- ComboBoxAutomationPeer.cs
- ActionItem.cs
- WindowsTokenRoleProvider.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- TextServicesDisplayAttributePropertyRanges.cs
- EditingCommands.cs
- ImageSource.cs
- CodeTypeReferenceExpression.cs
- DataGridViewColumnEventArgs.cs
- FlowLayoutSettings.cs
- DataTemplate.cs
- IntegerFacetDescriptionElement.cs
- ObjectDataSourceMethodEventArgs.cs
- PageRanges.cs
- SizeValueSerializer.cs
- HitTestParameters3D.cs
- CodeGotoStatement.cs
- DockingAttribute.cs
- ExtentKey.cs
- DbMetaDataCollectionNames.cs
- BinarySecretSecurityToken.cs
- DeviceContext2.cs
- SafeCryptContextHandle.cs
- AgileSafeNativeMemoryHandle.cs
- ListenerAdapterBase.cs
- ApplicationGesture.cs
- LoginView.cs
- DataServiceStreamProviderWrapper.cs
- ServicePointManager.cs
- SqlLiftIndependentRowExpressions.cs
- Int32Storage.cs
- TextServicesContext.cs
- TransformerTypeCollection.cs
- DataSourceHelper.cs
- EmptyReadOnlyDictionaryInternal.cs