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
- EventBindingService.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataError.cs
- WebPartConnectionsCloseVerb.cs
- StaticExtensionConverter.cs
- TemplateControlParser.cs
- TypeNameParser.cs
- ApplicationHost.cs
- OleDbEnumerator.cs
- SystemParameters.cs
- RightsManagementEncryptedStream.cs
- UpnEndpointIdentityExtension.cs
- XomlCompiler.cs
- SqlCacheDependencyDatabase.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ChannelServices.cs
- TextStore.cs
- WaitForChangedResult.cs
- ContentFilePart.cs
- ItemCollection.cs
- SplayTreeNode.cs
- FontNamesConverter.cs
- ServiceOperation.cs
- SafeNativeMethods.cs
- COM2ICategorizePropertiesHandler.cs
- RichTextBoxContextMenu.cs
- TextRangeBase.cs
- PathFigure.cs
- PropertyGridEditorPart.cs
- NodeInfo.cs
- OdbcConnectionOpen.cs
- TemplateXamlTreeBuilder.cs
- UnionQueryOperator.cs
- KeyedCollection.cs
- MarkupCompilePass2.cs
- backend.cs
- TypeLoadException.cs
- SymLanguageType.cs
- BlobPersonalizationState.cs
- DataSetUtil.cs
- WindowsClaimSet.cs
- ParameterDataSourceExpression.cs
- XmlSchemaSimpleType.cs
- PackWebRequestFactory.cs
- ToolStripControlHost.cs
- DataPagerFieldItem.cs
- FilteredDataSetHelper.cs
- PlanCompilerUtil.cs
- XmlSiteMapProvider.cs
- ConfigurationStrings.cs
- DataGridViewComboBoxCell.cs
- SendingRequestEventArgs.cs
- XmlWrappingReader.cs
- HttpCacheParams.cs
- BitmapEffectDrawingContextState.cs
- GatewayDefinition.cs
- PerformanceCountersElement.cs
- WebServiceReceive.cs
- VectorAnimationUsingKeyFrames.cs
- ReturnValue.cs
- ImageDrawing.cs
- DebugView.cs
- SessionStateModule.cs
- InitializationEventAttribute.cs
- SharedPerformanceCounter.cs
- BufferedGraphics.cs
- XmlLoader.cs
- TraceHwndHost.cs
- documentsequencetextpointer.cs
- HtmlTernaryTree.cs
- FontInfo.cs
- HtmlButton.cs
- Int32AnimationUsingKeyFrames.cs
- CngKeyCreationParameters.cs
- ListBoxItemAutomationPeer.cs
- ActivityCollectionMarkupSerializer.cs
- RangeValueProviderWrapper.cs
- ErrorEventArgs.cs
- InputLangChangeEvent.cs
- DataTableTypeConverter.cs
- SQLSingleStorage.cs
- ConfigurationValues.cs
- XmlComment.cs
- AssociationSetMetadata.cs
- VisualBasicReference.cs
- SerialPort.cs
- DataObject.cs
- WebPartConnectionsCloseVerb.cs
- RawStylusActions.cs
- DataListItemEventArgs.cs
- MulticastDelegate.cs
- hebrewshape.cs
- SessionMode.cs
- CallId.cs
- ConsumerConnectionPointCollection.cs
- WorkflowMarkupSerializer.cs
- MasterPage.cs
- DtrList.cs
- SelectionChangedEventArgs.cs
- WindowsSpinner.cs