Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Markup / InternalTypeHelper.cs / 1305600 / 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
- DataRecordInternal.cs
- ImageIndexConverter.cs
- DataGridViewColumn.cs
- GenericEnumerator.cs
- SQLInt32.cs
- PrinterSettings.cs
- ConfigXmlElement.cs
- UrlMapping.cs
- VisualStyleElement.cs
- TextRunCache.cs
- ColumnClickEvent.cs
- CodeSubDirectoriesCollection.cs
- DebugView.cs
- HMACSHA1.cs
- MouseGestureValueSerializer.cs
- EpmTargetPathSegment.cs
- TransformCollection.cs
- AccessDataSourceView.cs
- RowToParametersTransformer.cs
- RegisteredHiddenField.cs
- MouseEventArgs.cs
- SqlBuffer.cs
- DebugManager.cs
- AssociationSetMetadata.cs
- TemplateComponentConnector.cs
- GPStream.cs
- InputProcessorProfiles.cs
- ExitEventArgs.cs
- PermissionToken.cs
- PageOutputQuality.cs
- FontSizeConverter.cs
- CngKey.cs
- JsonCollectionDataContract.cs
- CodeTypeOfExpression.cs
- DrawingState.cs
- BuilderInfo.cs
- AppDomainUnloadedException.cs
- InertiaRotationBehavior.cs
- RadioButtonRenderer.cs
- ConfigXmlDocument.cs
- FactoryGenerator.cs
- DBConcurrencyException.cs
- ObjectStateManager.cs
- translator.cs
- CategoryGridEntry.cs
- MenuEventArgs.cs
- ZoomingMessageFilter.cs
- QueryCursorEventArgs.cs
- EntityCommandCompilationException.cs
- GcHandle.cs
- InitialServerConnectionReader.cs
- WebPartActionVerb.cs
- DynamicValueConverter.cs
- TextTreeExtractElementUndoUnit.cs
- MarginCollapsingState.cs
- ModuleConfigurationInfo.cs
- ListBox.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Function.cs
- PipeConnection.cs
- ObjectStateFormatter.cs
- PropertyDescriptor.cs
- ContractMapping.cs
- SqlGatherProducedAliases.cs
- HtmlCalendarAdapter.cs
- BaseConfigurationRecord.cs
- CapabilitiesUse.cs
- SoapServerProtocol.cs
- userdatakeys.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataGridColumnsPage.cs
- RoamingStoreFileUtility.cs
- SerializationFieldInfo.cs
- CellRelation.cs
- SpecialFolderEnumConverter.cs
- WebMessageFormatHelper.cs
- SessionStateModule.cs
- IisTraceListener.cs
- PasswordPropertyTextAttribute.cs
- XmlSerializationWriter.cs
- CompModSwitches.cs
- future.cs
- FixedNode.cs
- AttachedAnnotation.cs
- ColumnPropertiesGroup.cs
- DocumentViewerBase.cs
- DataGridViewCellParsingEventArgs.cs
- PostBackTrigger.cs
- TableParagraph.cs
- StylusDownEventArgs.cs
- SystemIcons.cs
- EntityDataSourceChangingEventArgs.cs
- HttpListenerResponse.cs
- SqlClientFactory.cs
- CodeCompiler.cs
- ImageConverter.cs
- BamlLocalizableResource.cs
- ColumnTypeConverter.cs
- RequestCachingSection.cs
- ColumnMapTranslator.cs