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
- SelectorItemAutomationPeer.cs
- TransformProviderWrapper.cs
- RequestBringIntoViewEventArgs.cs
- TokenBasedSetEnumerator.cs
- FillRuleValidation.cs
- PrintDialog.cs
- ToolStripArrowRenderEventArgs.cs
- ValidationHelper.cs
- StrongNameIdentityPermission.cs
- TimeSpanMinutesConverter.cs
- MailMessage.cs
- AxWrapperGen.cs
- SystemIdentity.cs
- TextElement.cs
- ViewPort3D.cs
- InteropTrackingRecord.cs
- FixedSOMTableCell.cs
- EtwTrace.cs
- GAC.cs
- LockCookie.cs
- TripleDES.cs
- HtmlImage.cs
- DataColumnMapping.cs
- ObjectDataSourceStatusEventArgs.cs
- Expression.DebuggerProxy.cs
- SiteMembershipCondition.cs
- CheckBoxAutomationPeer.cs
- SecurityToken.cs
- PassportAuthenticationModule.cs
- TypeEnumerableViewSchema.cs
- DependencyObjectProvider.cs
- PeerUnsafeNativeCryptMethods.cs
- ResourceReader.cs
- DataObjectMethodAttribute.cs
- EntityDataSourceEntityTypeFilterItem.cs
- WebPartConnectVerb.cs
- TraceHwndHost.cs
- ActiveXHelper.cs
- DataGridViewMethods.cs
- CacheEntry.cs
- GraphicsContainer.cs
- Evidence.cs
- MatrixIndependentAnimationStorage.cs
- StringArrayEditor.cs
- StickyNoteContentControl.cs
- QueryOutputWriter.cs
- WindowsBrush.cs
- ResourceSetExpression.cs
- sitestring.cs
- SystemIPv6InterfaceProperties.cs
- UpdateRecord.cs
- XhtmlBasicSelectionListAdapter.cs
- NewItemsContextMenuStrip.cs
- EmptyCollection.cs
- BufferCache.cs
- InputBinding.cs
- XmlConvert.cs
- Vector3DAnimation.cs
- PackWebRequest.cs
- ConfigurationPermission.cs
- NameHandler.cs
- CmsInterop.cs
- ContentType.cs
- SqlProviderManifest.cs
- PtsPage.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TextHidden.cs
- ToolStripDesignerAvailabilityAttribute.cs
- HtmlForm.cs
- SmiSettersStream.cs
- Query.cs
- AdornerDecorator.cs
- DropSource.cs
- NativeMethodsCLR.cs
- GridViewDesigner.cs
- _Events.cs
- Condition.cs
- MulticastIPAddressInformationCollection.cs
- HwndSourceParameters.cs
- Version.cs
- Stylus.cs
- ValidationErrorEventArgs.cs
- DocumentXPathNavigator.cs
- AtlasWeb.Designer.cs
- webclient.cs
- XmlSchemaAttributeGroupRef.cs
- Utility.cs
- MaskInputRejectedEventArgs.cs
- RegionIterator.cs
- XmlUrlEditor.cs
- XPathParser.cs
- SwitchExpression.cs
- RequestContext.cs
- CuspData.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- XmlDownloadManager.cs
- StylusDownEventArgs.cs
- PersonalizationProviderHelper.cs
- cookie.cs
- EncodingInfo.cs