Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Markup / InternalTypeHelper.cs / 1305600 / 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
- Property.cs
- DefaultTextStore.cs
- DetailsViewRowCollection.cs
- XPathDescendantIterator.cs
- SafeThemeHandle.cs
- HttpApplication.cs
- XmlIlVisitor.cs
- Overlapped.cs
- MemberRelationshipService.cs
- SqlCacheDependency.cs
- Misc.cs
- XmlNodeChangedEventManager.cs
- entityreference_tresulttype.cs
- FlowDocumentFormatter.cs
- ViewStateException.cs
- Sequence.cs
- BuildProviderUtils.cs
- MobileTemplatedControlDesigner.cs
- ArgumentException.cs
- DataObjectSettingDataEventArgs.cs
- nulltextcontainer.cs
- PropertyValueUIItem.cs
- XamlDesignerSerializationManager.cs
- SamlSecurityToken.cs
- ByteViewer.cs
- CodeExporter.cs
- MobileFormsAuthentication.cs
- Dictionary.cs
- TTSEvent.cs
- SystemColorTracker.cs
- DbExpressionVisitor_TResultType.cs
- CacheMode.cs
- GiveFeedbackEventArgs.cs
- ConfigurationPropertyCollection.cs
- COM2ExtendedBrowsingHandler.cs
- GroupedContextMenuStrip.cs
- SqlDataSourceWizardForm.cs
- DataDocumentXPathNavigator.cs
- InternalConfigEventArgs.cs
- JoinSymbol.cs
- PaperSource.cs
- Identity.cs
- CallbackTimeoutsElement.cs
- HtmlAnchor.cs
- PageParserFilter.cs
- MexHttpBindingElement.cs
- ArgumentDesigner.xaml.cs
- UrlMapping.cs
- ProcessModelSection.cs
- QilReplaceVisitor.cs
- TextRangeAdaptor.cs
- GregorianCalendarHelper.cs
- Predicate.cs
- XLinq.cs
- SimpleType.cs
- ClientOperation.cs
- MetadataStore.cs
- ControlAdapter.cs
- RoleService.cs
- LineBreak.cs
- WebZone.cs
- InternalMappingException.cs
- FunctionDetailsReader.cs
- EnumMember.cs
- PointAnimation.cs
- DataGridSortCommandEventArgs.cs
- TreeIterators.cs
- GraphicsContext.cs
- ScriptReference.cs
- TaskFormBase.cs
- CustomErrorsSection.cs
- Columns.cs
- CertificateManager.cs
- ActivityUtilities.cs
- DataTableMappingCollection.cs
- DataGridViewSelectedCellCollection.cs
- NativeMethods.cs
- DeflateEmulationStream.cs
- XmlQueryStaticData.cs
- CriticalFinalizerObject.cs
- MainMenu.cs
- BezierSegment.cs
- FormatConvertedBitmap.cs
- ServiceElementCollection.cs
- PropertyInformationCollection.cs
- RoutingEndpointTrait.cs
- Style.cs
- ByteStorage.cs
- XamlPathDataSerializer.cs
- DataRowView.cs
- ScriptControl.cs
- TableLayoutPanel.cs
- ECDiffieHellmanCngPublicKey.cs
- NamespaceEmitter.cs
- parserscommon.cs
- Zone.cs
- DataReceivedEventArgs.cs
- ProxyHelper.cs
- XmlCountingReader.cs
- TextControlDesigner.cs