Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / ContentWrapperAttribute.cs / 1 / ContentWrapperAttribute.cs
//---------------------------------------------------------------------------- // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: ContentWrapperAttribute.cs // // Description: Can be specified on a collection type to indicate which // types are used to wrap content foreign content such as // strings in a strongly type Collection. // // Created: 06/07/2005 chuckj // //--------------------------------------------------------------------------- namespace System.Windows.Markup { using System; /// /// Can be specified on a collection type to indicate which /// types are used to wrap content foreign content such as /// strings in a strongly type Collection. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)] sealed public class ContentWrapperAttribute : Attribute { ////// Declares the given type as being a content wrapper for the collection /// type this attribute is declared on. /// /// public ContentWrapperAttribute(Type contentWrapper) { _contentWrapper = contentWrapper; } ////// The type that is declared as a content wrapper for the collection type /// this attribute is declared on. /// public Type ContentWrapper { get { return _contentWrapper; } } ////// Override to ensure AttributeCollection perserves all instances /// public override object TypeId { get { return this; } } ////// Overrides Object.Equals to implement correct equality semantics for this /// attribute. /// public override bool Equals(object obj) { ContentWrapperAttribute other = obj as ContentWrapperAttribute; if (other == null) return false; return _contentWrapper == other._contentWrapper; } ////// Overrides Object.GetHashCode to implement correct hashing semantics. /// public override int GetHashCode() { return _contentWrapper.GetHashCode(); } private Type _contentWrapper; } } // 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
- FixedSOMFixedBlock.cs
- TraceInternal.cs
- SchemaNames.cs
- _ListenerRequestStream.cs
- SqlConnectionString.cs
- UrlAuthorizationModule.cs
- WhitespaceRuleLookup.cs
- COMException.cs
- SettingsAttributeDictionary.cs
- CodeNamespaceCollection.cs
- UpDownBase.cs
- MobileListItemCollection.cs
- SimpleBitVector32.cs
- SafeRightsManagementHandle.cs
- Message.cs
- ToolStripHighContrastRenderer.cs
- BoundPropertyEntry.cs
- Window.cs
- UnionExpr.cs
- XmlSchemaProviderAttribute.cs
- DbUpdateCommandTree.cs
- StreamUpgradeBindingElement.cs
- FeatureSupport.cs
- RegexCaptureCollection.cs
- Message.cs
- Baml2006Reader.cs
- WorkflowServiceBuildProvider.cs
- ObjectSet.cs
- QueryResponse.cs
- XmlNamespaceManager.cs
- SocketInformation.cs
- InheritanceContextHelper.cs
- GridViewDesigner.cs
- HtmlControl.cs
- XamlReaderHelper.cs
- DebugView.cs
- PreloadedPackages.cs
- ScopelessEnumAttribute.cs
- DataErrorValidationRule.cs
- TextParaClient.cs
- DelegatingTypeDescriptionProvider.cs
- Faults.cs
- ResourceCategoryAttribute.cs
- WebRequest.cs
- DigitShape.cs
- PageRequestManager.cs
- NaturalLanguageHyphenator.cs
- Dispatcher.cs
- AutoFocusStyle.xaml.cs
- MappingItemCollection.cs
- StyleBamlRecordReader.cs
- SelectionItemPattern.cs
- StringArrayConverter.cs
- InstanceCollisionException.cs
- MenuBindingsEditorForm.cs
- CroppedBitmap.cs
- PopupEventArgs.cs
- DescendantOverDescendantQuery.cs
- FacetChecker.cs
- SynchronousSendBindingElement.cs
- DesignerActionKeyboardBehavior.cs
- PerfCounterSection.cs
- PixelShader.cs
- NetworkCredential.cs
- VectorConverter.cs
- ExecutionScope.cs
- MD5.cs
- HttpVersion.cs
- PropertyItemInternal.cs
- HttpRuntimeSection.cs
- FormViewActionList.cs
- Lazy.cs
- GridLengthConverter.cs
- LicenseProviderAttribute.cs
- ServiceBehaviorAttribute.cs
- PersianCalendar.cs
- TickBar.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- Selection.cs
- SetStateEventArgs.cs
- GridViewEditEventArgs.cs
- Setter.cs
- TypeLibConverter.cs
- WebRequestModuleElementCollection.cs
- PasswordRecovery.cs
- XamlVector3DCollectionSerializer.cs
- MdiWindowListStrip.cs
- XmlAttributeProperties.cs
- CompilerError.cs
- QilFunction.cs
- EntityDataSourceReferenceGroup.cs
- SafeFindHandle.cs
- BrushValueSerializer.cs
- RelatedImageListAttribute.cs
- WmfPlaceableFileHeader.cs
- Part.cs
- WpfPayload.cs
- TimelineClockCollection.cs
- followingsibling.cs
- ConfigsHelper.cs