Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SpotLight.cs
- UserControlFileEditor.cs
- InputMethodStateTypeInfo.cs
- ListViewGroupItemCollection.cs
- PerfCounters.cs
- FunctionCommandText.cs
- ReaderWriterLock.cs
- DecimalAnimationUsingKeyFrames.cs
- PrivateFontCollection.cs
- PolygonHotSpot.cs
- HttpModuleCollection.cs
- PassportPrincipal.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- FileClassifier.cs
- Decorator.cs
- PackUriHelper.cs
- Decorator.cs
- EndpointIdentity.cs
- CellPartitioner.cs
- AssociationSetMetadata.cs
- Subtree.cs
- QueryContinueDragEvent.cs
- XhtmlBasicLinkAdapter.cs
- ModuleBuilder.cs
- NamedPipeAppDomainProtocolHandler.cs
- MenuItemCollection.cs
- WebPartVerbCollection.cs
- D3DImage.cs
- SizeConverter.cs
- XmlChildNodes.cs
- RenameRuleObjectDialog.Designer.cs
- BehaviorEditorPart.cs
- CodeBinaryOperatorExpression.cs
- validation.cs
- VerbConverter.cs
- ModifyActivitiesPropertyDescriptor.cs
- Regex.cs
- PlainXmlDeserializer.cs
- PictureBox.cs
- ConfigXmlComment.cs
- TemplatedMailWebEventProvider.cs
- TextViewBase.cs
- DatagridviewDisplayedBandsData.cs
- NTAccount.cs
- GlyphElement.cs
- SHA1.cs
- BindingBase.cs
- CompositeCollectionView.cs
- CodeCommentStatementCollection.cs
- securestring.cs
- StringValidatorAttribute.cs
- CalloutQueueItem.cs
- ScrollableControl.cs
- EnumConverter.cs
- MDIClient.cs
- TypeSystemHelpers.cs
- ResourceReferenceExpressionConverter.cs
- bidPrivateBase.cs
- CodeGotoStatement.cs
- ACE.cs
- PathFigureCollectionValueSerializer.cs
- StrokeNodeOperations2.cs
- X509LogoTypeExtension.cs
- ComponentManagerBroker.cs
- TableItemStyle.cs
- ModuleConfigurationInfo.cs
- HyperLinkDesigner.cs
- Enum.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- XmlSchemaChoice.cs
- PkcsUtils.cs
- fixedPageContentExtractor.cs
- StrokeDescriptor.cs
- Rotation3D.cs
- DataGridViewBindingCompleteEventArgs.cs
- FormsAuthenticationEventArgs.cs
- RepeaterItem.cs
- WinFormsUtils.cs
- HtmlContainerControl.cs
- FontFamilyConverter.cs
- SerializationStore.cs
- CorePropertiesFilter.cs
- ApplicationHost.cs
- OrderByLifter.cs
- OperationInvokerBehavior.cs
- CallId.cs
- WsatProxy.cs
- SimpleHandlerFactory.cs
- ImageListUtils.cs
- SafeNativeMethodsOther.cs
- ExpressionPrefixAttribute.cs
- CellConstantDomain.cs
- QueryOutputWriter.cs
- ClientConvert.cs
- TreeViewAutomationPeer.cs
- FilterQueryOptionExpression.cs
- Int32Collection.cs
- ConstructorExpr.cs
- RsaSecurityTokenParameters.cs
- SHA384Managed.cs