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
- VBIdentifierTrimConverter.cs
- IQueryable.cs
- ServicePoint.cs
- DrawingBrush.cs
- UpdateTranslator.cs
- MainMenu.cs
- InstanceStoreQueryResult.cs
- CompensationExtension.cs
- ApplicationContext.cs
- DbConnectionPoolCounters.cs
- DBSchemaTable.cs
- HostSecurityManager.cs
- UserInitiatedNavigationPermission.cs
- DataPager.cs
- WebResourceAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlHierarchicalEnumerable.cs
- ConfigurationLocationCollection.cs
- ReadOnlyDictionary.cs
- Exceptions.cs
- SignatureToken.cs
- EntityType.cs
- TimeEnumHelper.cs
- EntityDataSourceQueryBuilder.cs
- FrameworkContentElementAutomationPeer.cs
- SqlErrorCollection.cs
- LocalClientSecuritySettingsElement.cs
- SafeRightsManagementQueryHandle.cs
- HttpCapabilitiesBase.cs
- BufferedWebEventProvider.cs
- CubicEase.cs
- SimpleFileLog.cs
- ListViewGroupItemCollection.cs
- UshortList2.cs
- IDReferencePropertyAttribute.cs
- AssemblyAttributesGoHere.cs
- FieldTemplateFactory.cs
- SystemSounds.cs
- Sql8ConformanceChecker.cs
- ParameterToken.cs
- MachineKeyConverter.cs
- ListViewGroupConverter.cs
- TextRangeEditLists.cs
- DesignerActionTextItem.cs
- CacheHelper.cs
- QilIterator.cs
- DrawingVisualDrawingContext.cs
- DataGridPagerStyle.cs
- KeySpline.cs
- IntranetCredentialPolicy.cs
- TabPanel.cs
- SQLInt64Storage.cs
- EntityKey.cs
- HttpInputStream.cs
- DesignerRegionCollection.cs
- CheckBoxRenderer.cs
- XPathSelfQuery.cs
- LocalizableAttribute.cs
- IisTraceListener.cs
- HtmlUtf8RawTextWriter.cs
- NumberEdit.cs
- dataSvcMapFileLoader.cs
- SiteMembershipCondition.cs
- Int64KeyFrameCollection.cs
- ServicePoint.cs
- XmlIgnoreAttribute.cs
- TreeNodeStyleCollectionEditor.cs
- _ContextAwareResult.cs
- MessageSecurityOverTcp.cs
- TabControlAutomationPeer.cs
- SettingsPropertyNotFoundException.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EncoderParameter.cs
- NetCodeGroup.cs
- cookieexception.cs
- QueryExpr.cs
- HwndMouseInputProvider.cs
- MD5CryptoServiceProvider.cs
- PrimaryKeyTypeConverter.cs
- BamlTreeNode.cs
- DataGridRelationshipRow.cs
- XPathCompiler.cs
- ExceptionHandlers.cs
- CollectionViewProxy.cs
- WindowsComboBox.cs
- CancelEventArgs.cs
- TextParagraphProperties.cs
- EntityDataSourceColumn.cs
- SafeFileHandle.cs
- NonVisualControlAttribute.cs
- OleDbRowUpdatingEvent.cs
- GridViewColumnHeader.cs
- RemoteWebConfigurationHostServer.cs
- URLEditor.cs
- BrushConverter.cs
- SystemResourceKey.cs
- DtrList.cs
- DetailsViewRow.cs
- HttpModulesSection.cs
- RefreshEventArgs.cs