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
- DataSourceUtil.cs
- PropertyChangeTracker.cs
- ConstructorNeedsTagAttribute.cs
- StaticContext.cs
- TextRangeEditTables.cs
- MessageBox.cs
- SoapReflector.cs
- SecurityTokenException.cs
- RelationshipConverter.cs
- BindingBase.cs
- MappingModelBuildProvider.cs
- FixedBufferAttribute.cs
- nulltextnavigator.cs
- ConsoleCancelEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- CounterCreationDataCollection.cs
- CustomAttributeFormatException.cs
- PageParser.cs
- Gdiplus.cs
- SmiContextFactory.cs
- SerializerWriterEventHandlers.cs
- FilteredDataSetHelper.cs
- SharedConnectionWorkflowTransactionService.cs
- HttpListenerRequestUriBuilder.cs
- CanExpandCollapseAllConverter.cs
- LinqDataSourceHelper.cs
- TransformerTypeCollection.cs
- SqlTransaction.cs
- Wildcard.cs
- UIntPtr.cs
- Vector.cs
- DataObjectPastingEventArgs.cs
- ObjectComplexPropertyMapping.cs
- XamlTreeBuilder.cs
- OneOfScalarConst.cs
- CodeDOMProvider.cs
- FlowchartDesigner.Helpers.cs
- WindowsFont.cs
- ConvertEvent.cs
- ControlFilterExpression.cs
- DesignerWebPartChrome.cs
- HttpApplication.cs
- TextParagraph.cs
- ParallelTimeline.cs
- ImageListUtils.cs
- activationcontext.cs
- UnsafeNativeMethodsTablet.cs
- File.cs
- SBCSCodePageEncoding.cs
- EntityWithKeyStrategy.cs
- TargetException.cs
- XmlReaderSettings.cs
- HelpInfo.cs
- PersonalizablePropertyEntry.cs
- safesecurityhelperavalon.cs
- ButtonField.cs
- DesignerAdapterAttribute.cs
- Propagator.Evaluator.cs
- xml.cs
- StandardOleMarshalObject.cs
- GetMemberBinder.cs
- DataTableClearEvent.cs
- NumberEdit.cs
- BasicHttpMessageSecurity.cs
- WebHttpSecurityModeHelper.cs
- StyleSheet.cs
- BindingMAnagerBase.cs
- IUnknownConstantAttribute.cs
- log.cs
- _HeaderInfo.cs
- WebPartConnectionCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- HandlerFactoryWrapper.cs
- PlatformCulture.cs
- MissingManifestResourceException.cs
- ResourceKey.cs
- CroppedBitmap.cs
- ContextInformation.cs
- AssemblyName.cs
- Typography.cs
- HwndAppCommandInputProvider.cs
- MemoryPressure.cs
- MasterPageBuildProvider.cs
- MemoryPressure.cs
- Descriptor.cs
- Quaternion.cs
- SafeProcessHandle.cs
- SettingsBindableAttribute.cs
- CatalogZoneBase.cs
- Utility.cs
- DesignerDataConnection.cs
- OdbcException.cs
- Win32Exception.cs
- _UriTypeConverter.cs
- EdmType.cs
- MetabaseSettings.cs
- SafeEventLogWriteHandle.cs
- DrawingGroupDrawingContext.cs
- TdsParserStateObject.cs
- XmlSubtreeReader.cs