Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FrugalList.cs
- TextSearch.cs
- ExtentKey.cs
- BindingsSection.cs
- BufferedGraphics.cs
- CodeDelegateInvokeExpression.cs
- Page.cs
- FormCollection.cs
- PanelStyle.cs
- TextBreakpoint.cs
- dbenumerator.cs
- DataGridItem.cs
- FormViewModeEventArgs.cs
- WinFormsSecurity.cs
- WindowsListViewGroupHelper.cs
- SchemeSettingElementCollection.cs
- EventProviderBase.cs
- PointF.cs
- CreateRefExpr.cs
- CopyNodeSetAction.cs
- ConfigDefinitionUpdates.cs
- SafeProcessHandle.cs
- Selection.cs
- AssemblyHash.cs
- RawStylusInputCustomDataList.cs
- Assert.cs
- MemberInfoSerializationHolder.cs
- AvTraceFormat.cs
- ContextMarshalException.cs
- XPathDescendantIterator.cs
- StrokeIntersection.cs
- RoutedEventHandlerInfo.cs
- MetadataItemEmitter.cs
- StylusDevice.cs
- CodeDesigner.cs
- DynamicDocumentPaginator.cs
- Int64Storage.cs
- Queue.cs
- SafeProcessHandle.cs
- AccessText.cs
- ExpressionTextBox.xaml.cs
- HtmlLabelAdapter.cs
- PanelStyle.cs
- UnsafeNativeMethodsPenimc.cs
- ListViewGroupItemCollection.cs
- ThreadWorkerController.cs
- AppDomainAttributes.cs
- ImageConverter.cs
- HostedElements.cs
- SafeCancelMibChangeNotify.cs
- processwaithandle.cs
- StrokeFIndices.cs
- StructuredTypeEmitter.cs
- Parser.cs
- DataConnectionHelper.cs
- WebResourceAttribute.cs
- smtppermission.cs
- DbConvert.cs
- DragDeltaEventArgs.cs
- FormViewUpdatedEventArgs.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SslSecurityTokenParameters.cs
- ContentPresenter.cs
- SpotLight.cs
- SQLDateTime.cs
- DoubleAnimationUsingPath.cs
- TreeIterators.cs
- TreeNodeSelectionProcessor.cs
- PopOutPanel.cs
- ModelItemDictionary.cs
- ErrorStyle.cs
- PreloadedPackages.cs
- StaticTextPointer.cs
- Tablet.cs
- CodeDelegateCreateExpression.cs
- Vector3DAnimation.cs
- ImageSourceValueSerializer.cs
- ProviderIncompatibleException.cs
- OrderedParallelQuery.cs
- ScriptResourceMapping.cs
- PropertyPathWorker.cs
- SystemIPInterfaceProperties.cs
- WebPartCatalogAddVerb.cs
- WebServiceData.cs
- AssemblyResolver.cs
- ApplicationDirectory.cs
- Helpers.cs
- DataGridViewCellStyleConverter.cs
- CancelRequestedQuery.cs
- ADRole.cs
- Schema.cs
- Mapping.cs
- DataServiceRequestOfT.cs
- TimeSpanFormat.cs
- MissingMemberException.cs
- UIAgentMonitor.cs
- BrowserCapabilitiesCompiler.cs
- CellCreator.cs
- HttpFileCollection.cs
- Int32Storage.cs