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
- ArgumentValidation.cs
- Currency.cs
- DateTimeFormatInfoScanner.cs
- ReachPageContentCollectionSerializerAsync.cs
- CodePropertyReferenceExpression.cs
- HashRepartitionStream.cs
- HttpResponseHeader.cs
- TransformerTypeCollection.cs
- ArglessEventHandlerProxy.cs
- TagPrefixAttribute.cs
- Page.cs
- ValidationSummary.cs
- OdbcStatementHandle.cs
- UrlPath.cs
- StandardToolWindows.cs
- SQLGuid.cs
- FormViewRow.cs
- ColorBuilder.cs
- QilStrConcatenator.cs
- InfocardInteractiveChannelInitializer.cs
- WebBrowserContainer.cs
- ResourceExpressionBuilder.cs
- SqlCharStream.cs
- Blend.cs
- OperationDescriptionCollection.cs
- OrthographicCamera.cs
- ColorAnimation.cs
- Conditional.cs
- XomlCompilerHelpers.cs
- Control.cs
- Query.cs
- XmlSchemaRedefine.cs
- OletxResourceManager.cs
- DockProviderWrapper.cs
- PluggableProtocol.cs
- NotifyParentPropertyAttribute.cs
- ScopelessEnumAttribute.cs
- RegexStringValidatorAttribute.cs
- HuffCodec.cs
- ClientSideQueueItem.cs
- FrugalMap.cs
- TiffBitmapDecoder.cs
- PrimaryKeyTypeConverter.cs
- TakeQueryOptionExpression.cs
- ResourceContainer.cs
- ParenthesizePropertyNameAttribute.cs
- ReferenceSchema.cs
- Graph.cs
- TreeSet.cs
- Type.cs
- HighlightVisual.cs
- ImageSourceConverter.cs
- DrawListViewColumnHeaderEventArgs.cs
- SmtpCommands.cs
- EventProxy.cs
- ItemDragEvent.cs
- ToolStripRenderer.cs
- LinearQuaternionKeyFrame.cs
- BitmapPalettes.cs
- TextPenaltyModule.cs
- MediaSystem.cs
- ValueConversionAttribute.cs
- sortedlist.cs
- LazyTextWriterCreator.cs
- ChannelBase.cs
- AsymmetricSignatureFormatter.cs
- KnownBoxes.cs
- Normalization.cs
- PasswordTextContainer.cs
- HighlightComponent.cs
- WindowsFormsHelpers.cs
- DataSourceView.cs
- CodeStatement.cs
- CmsInterop.cs
- InterleavedZipPartStream.cs
- SafeProcessHandle.cs
- UserControlAutomationPeer.cs
- HttpServerVarsCollection.cs
- SerializationSectionGroup.cs
- TraceContext.cs
- VariableReference.cs
- shaperfactoryquerycachekey.cs
- Transactions.cs
- EmissiveMaterial.cs
- ExcCanonicalXml.cs
- MiniParameterInfo.cs
- SchemaImporterExtension.cs
- DBSqlParserColumnCollection.cs
- XmlValidatingReaderImpl.cs
- BitmapPalettes.cs
- PriorityRange.cs
- CalendarItem.cs
- CompensatableTransactionScopeActivity.cs
- WebPartDescriptionCollection.cs
- WorkflowInstanceContextProvider.cs
- ScrollItemPatternIdentifiers.cs
- Merger.cs
- WriterOutput.cs
- AudioException.cs
- VectorKeyFrameCollection.cs