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
- HtmlInputCheckBox.cs
- BitHelper.cs
- OleDbWrapper.cs
- dataprotectionpermissionattribute.cs
- SpAudioStreamWrapper.cs
- __Error.cs
- ReaderContextStackData.cs
- DataGridAddNewRow.cs
- Geometry3D.cs
- Zone.cs
- FrameworkRichTextComposition.cs
- Drawing.cs
- TextWriterEngine.cs
- HtmlTableCellCollection.cs
- UpdatePanel.cs
- CachingHintValidation.cs
- _LoggingObject.cs
- MarshalByRefObject.cs
- ResourceSet.cs
- BuildProvidersCompiler.cs
- SegmentInfo.cs
- SafeCryptoHandles.cs
- ForeignConstraint.cs
- EncryptionUtility.cs
- TreeView.cs
- PcmConverter.cs
- FactoryRecord.cs
- StreamDocument.cs
- SamlAttribute.cs
- ZipPackagePart.cs
- SqlMethods.cs
- Point3DAnimation.cs
- UIElementAutomationPeer.cs
- ExeContext.cs
- ShaderEffect.cs
- TextBoxDesigner.cs
- EmptyImpersonationContext.cs
- DataRow.cs
- LogicalExpr.cs
- SchemaTableOptionalColumn.cs
- Graph.cs
- ListControl.cs
- Regex.cs
- ReflectPropertyDescriptor.cs
- PasswordBox.cs
- DataMisalignedException.cs
- Stroke2.cs
- HybridObjectCache.cs
- UriSection.cs
- OleDbParameterCollection.cs
- TreeNodeMouseHoverEvent.cs
- ListChangedEventArgs.cs
- QilIterator.cs
- Roles.cs
- WorkflowRuntimeSection.cs
- AlignmentYValidation.cs
- DetailsViewUpdateEventArgs.cs
- ConfigurationSectionGroupCollection.cs
- HostingEnvironmentSection.cs
- LayoutSettings.cs
- SecurityHelper.cs
- ConstructorExpr.cs
- GridViewSelectEventArgs.cs
- OracleConnectionString.cs
- DrawingImage.cs
- Compiler.cs
- DataColumnMapping.cs
- ChildDocumentBlock.cs
- XmlReturnReader.cs
- XmlSchemaAnyAttribute.cs
- SoapAttributes.cs
- WithStatement.cs
- FactoryRecord.cs
- DataTableMapping.cs
- Point3D.cs
- MessageAction.cs
- ColumnMapTranslator.cs
- MarkupWriter.cs
- WinEventQueueItem.cs
- RightsManagementPermission.cs
- UiaCoreTypesApi.cs
- IdentifierElement.cs
- InkCanvasFeedbackAdorner.cs
- ProtocolsSection.cs
- Popup.cs
- IPipelineRuntime.cs
- ModelTypeConverter.cs
- ContentFileHelper.cs
- SplineKeyFrames.cs
- XmlSchemaDatatype.cs
- FocusManager.cs
- DataGridViewRowCancelEventArgs.cs
- SizeAnimationClockResource.cs
- ConstraintStruct.cs
- UIElement.cs
- SuppressMessageAttribute.cs
- XmlJsonReader.cs
- OracleNumber.cs
- PartitionedDataSource.cs
- SqlDataAdapter.cs