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
- FuncTypeConverter.cs
- ToolStripProgressBar.cs
- DetailsViewRowCollection.cs
- ProtectedConfigurationSection.cs
- MenuItemCollection.cs
- SafeFileHandle.cs
- SectionInformation.cs
- StackSpiller.Generated.cs
- XmlKeywords.cs
- CodeTypeDeclarationCollection.cs
- ColorConverter.cs
- ProxySimple.cs
- Lasso.cs
- HashSetDebugView.cs
- PartialCachingControl.cs
- AssertSection.cs
- ApplyImportsAction.cs
- FontStretchConverter.cs
- HttpRequest.cs
- HttpInputStream.cs
- Executor.cs
- DateTimeValueSerializer.cs
- ApplicationSecurityInfo.cs
- InputProviderSite.cs
- PolyQuadraticBezierSegment.cs
- SignedXml.cs
- PanningMessageFilter.cs
- SqlInternalConnectionSmi.cs
- Base64Encoder.cs
- SubMenuStyle.cs
- CallbackException.cs
- CompilationLock.cs
- ContentWrapperAttribute.cs
- ColumnCollection.cs
- StsCommunicationException.cs
- FormsIdentity.cs
- ProviderConnectionPointCollection.cs
- CacheHelper.cs
- SoundPlayer.cs
- BulletedListEventArgs.cs
- Visual3D.cs
- ValidatedControlConverter.cs
- MsmqIntegrationInputChannel.cs
- RuleRef.cs
- ImageField.cs
- CheckedPointers.cs
- VirtualizingPanel.cs
- VisualStyleInformation.cs
- JoinSymbol.cs
- HttpMethodConstraint.cs
- SqlBulkCopyColumnMappingCollection.cs
- HttpModulesSection.cs
- AggregateNode.cs
- TextRange.cs
- HttpPostedFileWrapper.cs
- EventArgs.cs
- NetworkStream.cs
- HistoryEventArgs.cs
- InputMethodStateTypeInfo.cs
- VectorAnimationUsingKeyFrames.cs
- ConfigurationErrorsException.cs
- DefaultValueConverter.cs
- LinearQuaternionKeyFrame.cs
- MenuEventArgs.cs
- UIElementParaClient.cs
- RuntimeVariablesExpression.cs
- ContentPresenter.cs
- PartitionResolver.cs
- CallbackException.cs
- RelationshipType.cs
- ExpandCollapsePattern.cs
- SkipStoryboardToFill.cs
- EmptyReadOnlyDictionaryInternal.cs
- BitmapMetadata.cs
- Visual3D.cs
- TypeConverterAttribute.cs
- ReachSerializationCacheItems.cs
- XmlExtensionFunction.cs
- UIElement.cs
- RemoteWebConfigurationHostStream.cs
- Simplifier.cs
- StubHelpers.cs
- Qualifier.cs
- ConfigDefinitionUpdates.cs
- StreamingContext.cs
- EditorResources.cs
- WorkflowMarkupElementEventArgs.cs
- FamilyTypefaceCollection.cs
- ColumnMapProcessor.cs
- QuadraticEase.cs
- InputBindingCollection.cs
- ScheduleChanges.cs
- SchemaName.cs
- RegexReplacement.cs
- DataSourceCacheDurationConverter.cs
- EditorPartChrome.cs
- PersonalizationStateQuery.cs
- EdmPropertyAttribute.cs
- ReaderWriterLockSlim.cs
- Internal.cs