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
- HttpListenerResponse.cs
- ConfigurationValues.cs
- OracleFactory.cs
- BindingCompleteEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- IdnElement.cs
- AvTraceFormat.cs
- UInt32.cs
- ImageSourceValueSerializer.cs
- DrawingBrush.cs
- NameValueFileSectionHandler.cs
- ZipIOExtraField.cs
- TriState.cs
- TransformConverter.cs
- ColorBuilder.cs
- ScriptManagerProxy.cs
- DataGridBeginningEditEventArgs.cs
- TcpStreams.cs
- _BufferOffsetSize.cs
- DaylightTime.cs
- Html32TextWriter.cs
- _ScatterGatherBuffers.cs
- PingOptions.cs
- TableRow.cs
- ISCIIEncoding.cs
- StringHelper.cs
- EmptyReadOnlyDictionaryInternal.cs
- DockingAttribute.cs
- BufferedGraphicsContext.cs
- OutputScope.cs
- OdbcParameterCollection.cs
- DecimalAnimationUsingKeyFrames.cs
- OutOfProcStateClientManager.cs
- UIElementCollection.cs
- Application.cs
- FormatSettings.cs
- Wizard.cs
- OrthographicCamera.cs
- HTMLTagNameToTypeMapper.cs
- PropertySourceInfo.cs
- DataServiceQueryProvider.cs
- ToolStripItemBehavior.cs
- ValidationError.cs
- SamlAttributeStatement.cs
- QilGenerator.cs
- BodyWriter.cs
- WebConfigurationHost.cs
- relpropertyhelper.cs
- WindowsContainer.cs
- SiteMapNodeItemEventArgs.cs
- RoleBoolean.cs
- ScrollChrome.cs
- SerialPort.cs
- TableProvider.cs
- Expander.cs
- ProgressBarHighlightConverter.cs
- ProtocolViolationException.cs
- LocalIdKeyIdentifierClause.cs
- BooleanKeyFrameCollection.cs
- OdbcDataAdapter.cs
- DataBindingCollection.cs
- NaturalLanguageHyphenator.cs
- SrgsGrammar.cs
- OptimizedTemplateContent.cs
- ScriptResourceInfo.cs
- UIPermission.cs
- ISessionStateStore.cs
- Matrix3DValueSerializer.cs
- Compensate.cs
- ProfessionalColors.cs
- SymLanguageVendor.cs
- GridViewRowPresenterBase.cs
- ListenerElementsCollection.cs
- SafeBitVector32.cs
- ColorAnimationUsingKeyFrames.cs
- AdapterUtil.cs
- ResourceType.cs
- XmlBoundElement.cs
- NestPullup.cs
- WorkflowDefinitionDispenser.cs
- NavigationPropertySingletonExpression.cs
- FieldValue.cs
- ResolveMatchesApril2005.cs
- DataBoundControlParameterTarget.cs
- SoapTypeAttribute.cs
- NegotiationTokenAuthenticatorState.cs
- SignatureHelper.cs
- SecurityUtils.cs
- DecoderExceptionFallback.cs
- Size.cs
- IDictionary.cs
- Lock.cs
- MatrixConverter.cs
- FontFamilyValueSerializer.cs
- XmlResolver.cs
- RequestCachePolicy.cs
- ZipIORawDataFileBlock.cs
- LocalBuilder.cs
- SystemIPGlobalProperties.cs
- DataErrorValidationRule.cs