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
- FolderBrowserDialog.cs
- DataControlReferenceCollection.cs
- SortDescriptionCollection.cs
- UIHelper.cs
- Perspective.cs
- ViewKeyConstraint.cs
- PasswordDeriveBytes.cs
- ResourcePool.cs
- CacheOutputQuery.cs
- GridSplitterAutomationPeer.cs
- NotifyInputEventArgs.cs
- ListSourceHelper.cs
- VerticalAlignConverter.cs
- TransformerInfoCollection.cs
- X509AudioLogo.cs
- HttpWebRequest.cs
- CultureSpecificStringDictionary.cs
- BindValidator.cs
- OracleColumn.cs
- SqlConnection.cs
- HostedBindingBehavior.cs
- MarshalDirectiveException.cs
- CachedFontFace.cs
- WebPartDisplayModeCancelEventArgs.cs
- QueryOpeningEnumerator.cs
- StaticSiteMapProvider.cs
- DesignerSerializerAttribute.cs
- PrintDialogException.cs
- SrgsGrammar.cs
- Utils.cs
- RequestBringIntoViewEventArgs.cs
- XmlTextEncoder.cs
- DetailsViewPagerRow.cs
- MapPathBasedVirtualPathProvider.cs
- HttpCapabilitiesSectionHandler.cs
- BaseDataBoundControl.cs
- SortableBindingList.cs
- ClassDataContract.cs
- FormsAuthenticationEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- ManifestSignedXml.cs
- XmlSchemaRedefine.cs
- HttpRequestCacheValidator.cs
- ObjectParameterCollection.cs
- wgx_render.cs
- ColumnWidthChangedEvent.cs
- RawTextInputReport.cs
- OutgoingWebRequestContext.cs
- PrimitiveType.cs
- RotateTransform.cs
- StringTraceRecord.cs
- CheckBoxPopupAdapter.cs
- IDispatchConstantAttribute.cs
- DataGridViewHitTestInfo.cs
- EasingKeyFrames.cs
- RadioButtonAutomationPeer.cs
- AlternateView.cs
- MetaModel.cs
- LinearKeyFrames.cs
- OutputCacheProfileCollection.cs
- WebServiceClientProxyGenerator.cs
- OletxVolatileEnlistment.cs
- WindowsSolidBrush.cs
- IgnoreSection.cs
- IPEndPoint.cs
- PrtCap_Reader.cs
- DeflateInput.cs
- XmlNodeChangedEventManager.cs
- RangeValuePattern.cs
- Decorator.cs
- DataGridClipboardCellContent.cs
- SelectedGridItemChangedEvent.cs
- RepeatButton.cs
- TypefaceMap.cs
- DbQueryCommandTree.cs
- KeyManager.cs
- WebPartsPersonalization.cs
- AsynchronousChannelMergeEnumerator.cs
- RSAProtectedConfigurationProvider.cs
- DisplayMemberTemplateSelector.cs
- MultipleViewPatternIdentifiers.cs
- CodeTypeParameterCollection.cs
- XappLauncher.cs
- DataGridPagerStyle.cs
- CatalogPartCollection.cs
- CreateDataSourceDialog.cs
- ObservableCollection.cs
- OLEDB_Enum.cs
- EditorZone.cs
- SqlTypesSchemaImporter.cs
- sitestring.cs
- ErrorItem.cs
- DynamicMethod.cs
- EventLogPermissionEntry.cs
- HwndSourceKeyboardInputSite.cs
- ProcessModuleDesigner.cs
- DataSourceConverter.cs
- DrawingDrawingContext.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- JoinElimination.cs