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
- Translator.cs
- ExceptionHelpers.cs
- ConfigXmlAttribute.cs
- KernelTypeValidation.cs
- VisualStyleInformation.cs
- GenericIdentity.cs
- GridViewPageEventArgs.cs
- GrammarBuilder.cs
- ChannelSinkStacks.cs
- EDesignUtil.cs
- BinaryObjectReader.cs
- MetabaseSettings.cs
- NativeMethods.cs
- SystemIPAddressInformation.cs
- ExpressionWriter.cs
- UserPreferenceChangingEventArgs.cs
- Mutex.cs
- OperationAbortedException.cs
- ObjectTypeMapping.cs
- ApplicationBuildProvider.cs
- TracingConnectionListener.cs
- EventListenerClientSide.cs
- DisplayMemberTemplateSelector.cs
- PieceNameHelper.cs
- ColumnHeader.cs
- MultilineStringConverter.cs
- _ConnectionGroup.cs
- OdbcParameterCollection.cs
- TextContainer.cs
- CodeConstructor.cs
- MimeMapping.cs
- NotCondition.cs
- WebRequestModuleElementCollection.cs
- UIElement.cs
- FramingEncoders.cs
- TextTreeUndoUnit.cs
- PropertyTabChangedEvent.cs
- BlurBitmapEffect.cs
- OpCodes.cs
- XhtmlConformanceSection.cs
- TableCell.cs
- PropertyGeneratedEventArgs.cs
- columnmapfactory.cs
- DataTemplateKey.cs
- BaseValidator.cs
- _FtpDataStream.cs
- Html32TextWriter.cs
- VirtualizingPanel.cs
- DependencySource.cs
- WindowsTokenRoleProvider.cs
- arabicshape.cs
- ProxyElement.cs
- FlowDocumentReaderAutomationPeer.cs
- XmlNamespaceMappingCollection.cs
- BitArray.cs
- LineGeometry.cs
- OutputCacheSettings.cs
- PageCatalogPartDesigner.cs
- CompatibleIComparer.cs
- TransactionBridgeSection.cs
- AspNetSynchronizationContext.cs
- MultilineStringEditor.cs
- TypeListConverter.cs
- InlineCollection.cs
- SafeMILHandle.cs
- ACE.cs
- CultureInfo.cs
- TextTreePropertyUndoUnit.cs
- ReflectionUtil.cs
- RequiredAttributeAttribute.cs
- StandardCommands.cs
- AuthenticationModuleElementCollection.cs
- ListViewItem.cs
- SqlCacheDependencySection.cs
- UpdateProgress.cs
- precedingsibling.cs
- RuleSetDialog.cs
- ProviderMetadataCachedInformation.cs
- WebPartEditorOkVerb.cs
- SecurityTokenException.cs
- BinarySecretSecurityToken.cs
- AliasGenerator.cs
- IsolatedStorageFileStream.cs
- SizeConverter.cs
- HttpProtocolReflector.cs
- PageTheme.cs
- StringWriter.cs
- Descriptor.cs
- Unit.cs
- AnimationClockResource.cs
- DeclaredTypeValidatorAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- MimeTypeAttribute.cs
- BitmapSource.cs
- OleTxTransaction.cs
- DataServiceExpressionVisitor.cs
- SiteMap.cs
- SQLSingle.cs
- EndOfStreamException.cs
- thaishape.cs