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
- ManipulationStartingEventArgs.cs
- StreamInfo.cs
- ResourceKey.cs
- ParseNumbers.cs
- BindingGroup.cs
- ObjectSecurity.cs
- HttpListenerPrefixCollection.cs
- DefaultMemberAttribute.cs
- SqlBooleanMismatchVisitor.cs
- Container.cs
- WebPartEditorApplyVerb.cs
- LicenseContext.cs
- ExpressionPrefixAttribute.cs
- XsdBuildProvider.cs
- TraceContextEventArgs.cs
- wgx_render.cs
- ConnectionProviderAttribute.cs
- ApplicationException.cs
- CodeAttributeArgument.cs
- GeneralTransform3DTo2D.cs
- InternalControlCollection.cs
- DatagramAdapter.cs
- ArrayElementGridEntry.cs
- XmlSerializerSection.cs
- HMACRIPEMD160.cs
- RecordsAffectedEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- EndOfStreamException.cs
- ProfilePropertySettingsCollection.cs
- ProcessModelSection.cs
- RectangleHotSpot.cs
- ViewCellSlot.cs
- base64Transforms.cs
- TogglePattern.cs
- IUnknownConstantAttribute.cs
- HtmlTableCellCollection.cs
- DateTime.cs
- SQlBooleanStorage.cs
- VirtualPathData.cs
- MobileUserControlDesigner.cs
- Size3DConverter.cs
- SecurityUtils.cs
- SqlStatistics.cs
- EncryptedPackage.cs
- ColumnWidthChangingEvent.cs
- ListViewItemSelectionChangedEvent.cs
- Menu.cs
- RoleBoolean.cs
- WebFaultException.cs
- ListViewItemEventArgs.cs
- Int16Storage.cs
- storepermission.cs
- SQLBytes.cs
- ConcatQueryOperator.cs
- ToolBarButtonClickEvent.cs
- TemplatedWizardStep.cs
- SimplePropertyEntry.cs
- ExceptionRoutedEventArgs.cs
- ObjectTag.cs
- PagerSettings.cs
- LinqDataView.cs
- RowSpanVector.cs
- XmlAttributeCollection.cs
- Decimal.cs
- PropertyTab.cs
- StylusTip.cs
- IisTraceWebEventProvider.cs
- CurrentTimeZone.cs
- WsiProfilesElement.cs
- iisPickupDirectory.cs
- iisPickupDirectory.cs
- DeclarationUpdate.cs
- TimeEnumHelper.cs
- PolyLineSegmentFigureLogic.cs
- InternalControlCollection.cs
- UTF8Encoding.cs
- WpfPayload.cs
- UnaryQueryOperator.cs
- DoubleIndependentAnimationStorage.cs
- InteropDesigner.xaml.cs
- DNS.cs
- OperandQuery.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- securestring.cs
- ProviderUtil.cs
- ShaderEffect.cs
- OutOfMemoryException.cs
- XmlResolver.cs
- ExternalDataExchangeClient.cs
- safelink.cs
- FontFamily.cs
- RoleGroupCollection.cs
- FirstMatchCodeGroup.cs
- MarkupExtensionParser.cs
- AuthorizationRule.cs
- StreamGeometry.cs
- ObjectSecurity.cs
- CodeVariableDeclarationStatement.cs
- CharacterBufferReference.cs
- ToolboxDataAttribute.cs