Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- followingquery.cs
- RelationshipNavigation.cs
- Point4DConverter.cs
- FixedFindEngine.cs
- FontStretches.cs
- PeerTransportElement.cs
- NativeMethodsCLR.cs
- SelectedDatesCollection.cs
- CheckBoxBaseAdapter.cs
- PlanCompiler.cs
- IncrementalHitTester.cs
- DrawListViewColumnHeaderEventArgs.cs
- ReadOnlyObservableCollection.cs
- CodeExpressionStatement.cs
- WebPartManagerInternals.cs
- ParameterModifier.cs
- AssemblyCollection.cs
- figurelength.cs
- XmlNamespaceMapping.cs
- StandardToolWindows.cs
- HttpRequest.cs
- AssemblyBuilder.cs
- querybuilder.cs
- MemberDescriptor.cs
- WindowsFormsSectionHandler.cs
- FileUpload.cs
- BufferedStream.cs
- UpdateCommandGenerator.cs
- WindowsTab.cs
- WebPartManager.cs
- XmlDocumentFragment.cs
- ConfigurationManagerHelper.cs
- EntityStoreSchemaGenerator.cs
- SafeHandle.cs
- PenContext.cs
- XmlSchemaComplexContentRestriction.cs
- PrimitiveDataContract.cs
- ImportContext.cs
- OrderedEnumerableRowCollection.cs
- ListView.cs
- HttpResponseHeader.cs
- HandlerWithFactory.cs
- SectionRecord.cs
- CqlQuery.cs
- ToolZone.cs
- SiteMapNodeItem.cs
- ArraySet.cs
- MembershipValidatePasswordEventArgs.cs
- XPathNodeList.cs
- RichTextBox.cs
- PrimarySelectionAdorner.cs
- UndoUnit.cs
- UshortList2.cs
- PasswordTextNavigator.cs
- OperationResponse.cs
- XamlInt32CollectionSerializer.cs
- KeyboardDevice.cs
- TabletDevice.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- AdornerHitTestResult.cs
- DefaultMergeHelper.cs
- OdbcParameter.cs
- KeyManager.cs
- DataGridToolTip.cs
- WebContext.cs
- CodeTypeParameterCollection.cs
- TickBar.cs
- XmlSerializerSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DesignerProperties.cs
- XDRSchema.cs
- IWorkflowDebuggerService.cs
- TypeDefinition.cs
- InnerItemCollectionView.cs
- TransactionFlowOption.cs
- safelinkcollection.cs
- DrawingVisual.cs
- HealthMonitoringSectionHelper.cs
- backend.cs
- PrintControllerWithStatusDialog.cs
- ProfilePropertyMetadata.cs
- ToolStripContentPanel.cs
- TrustManager.cs
- SQLResource.cs
- StartFileNameEditor.cs
- StickyNoteHelper.cs
- EncryptedData.cs
- TableStyle.cs
- Win32NamedPipes.cs
- OdbcConnectionFactory.cs
- DataGridGeneralPage.cs
- RoleService.cs
- ResourceKey.cs
- ImageSourceValueSerializer.cs
- RolePrincipal.cs
- TextServicesContext.cs
- Task.cs
- PageCodeDomTreeGenerator.cs
- AnnotationHighlightLayer.cs
- CustomLineCap.cs