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
- RuntimeConfig.cs
- MembershipPasswordException.cs
- FrameworkContentElementAutomationPeer.cs
- IListConverters.cs
- SessionPageStateSection.cs
- C14NUtil.cs
- DataKey.cs
- ProxyBuilder.cs
- DispatcherProcessingDisabled.cs
- RawStylusInput.cs
- DictionaryEntry.cs
- SystemResources.cs
- AuthenticationModuleElement.cs
- DateTimeValueSerializer.cs
- MultipartIdentifier.cs
- PropertyTabAttribute.cs
- COSERVERINFO.cs
- ApplicationException.cs
- CodeTypeMember.cs
- UpdatePanelTriggerCollection.cs
- TextSchema.cs
- Focus.cs
- XhtmlBasicPhoneCallAdapter.cs
- COM2Enum.cs
- RuleSettings.cs
- _TLSstream.cs
- coordinatorscratchpad.cs
- VerticalAlignConverter.cs
- PropagationProtocolsTracing.cs
- Rect3DValueSerializer.cs
- ScrollBarAutomationPeer.cs
- SlipBehavior.cs
- MemoryPressure.cs
- InvalidProgramException.cs
- SkewTransform.cs
- XamlWriter.cs
- FastEncoderStatics.cs
- QilLiteral.cs
- DigestTraceRecordHelper.cs
- BindingCollection.cs
- GridViewSelectEventArgs.cs
- validationstate.cs
- StylusEditingBehavior.cs
- Timer.cs
- HtmlInputFile.cs
- StringResourceManager.cs
- DelegateBodyWriter.cs
- QueryHandler.cs
- DynamicRendererThreadManager.cs
- ReadWriteControlDesigner.cs
- VectorKeyFrameCollection.cs
- LambdaCompiler.Address.cs
- CaretElement.cs
- RSAPKCS1SignatureFormatter.cs
- ImageKeyConverter.cs
- ArrayHelper.cs
- PageBreakRecord.cs
- ScriptingJsonSerializationSection.cs
- GridViewDeleteEventArgs.cs
- MouseOverProperty.cs
- UnionExpr.cs
- DeferredRunTextReference.cs
- RootAction.cs
- SimpleHandlerBuildProvider.cs
- Processor.cs
- ResolveMatchesApril2005.cs
- SupportingTokenParameters.cs
- CheckBoxPopupAdapter.cs
- CapabilitiesSection.cs
- Light.cs
- WebConfigurationHostFileChange.cs
- TabPageDesigner.cs
- NetworkAddressChange.cs
- XNameConverter.cs
- GraphicsPath.cs
- DCSafeHandle.cs
- BulletedListEventArgs.cs
- GC.cs
- JsonUriDataContract.cs
- OLEDB_Util.cs
- PerfService.cs
- TextRangeBase.cs
- DescendantBaseQuery.cs
- TextureBrush.cs
- CurrentChangingEventArgs.cs
- InheritanceRules.cs
- ScrollPattern.cs
- ApplicationFileParser.cs
- CngUIPolicy.cs
- DragDrop.cs
- SettingsBindableAttribute.cs
- SecureStringHasher.cs
- XPathScanner.cs
- WindowsNonControl.cs
- DaylightTime.cs
- CheckBoxField.cs
- TextBox.cs
- ColorInterpolationModeValidation.cs
- AttributeCollection.cs
- Tablet.cs