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
- SafeLibraryHandle.cs
- Interlocked.cs
- ConstNode.cs
- SqlCacheDependencyDatabase.cs
- UserValidatedEventArgs.cs
- _BasicClient.cs
- Visual3D.cs
- VectorAnimationBase.cs
- TransactionException.cs
- WebEvents.cs
- Tag.cs
- DurationConverter.cs
- EdmConstants.cs
- XmlNamespaceMapping.cs
- EntityContainerEmitter.cs
- RoleManagerModule.cs
- BitmapEffectDrawingContent.cs
- FullTextLine.cs
- CodeTypeDeclaration.cs
- XmlNamespaceMappingCollection.cs
- DataGridViewElement.cs
- TypeConverterHelper.cs
- X509CertificateCollection.cs
- HttpContext.cs
- SortFieldComparer.cs
- InternalConfigConfigurationFactory.cs
- FastEncoderStatics.cs
- ReflectionUtil.cs
- DocumentReference.cs
- PolicyException.cs
- SecurityTokenSpecification.cs
- StaticTextPointer.cs
- ToolStripArrowRenderEventArgs.cs
- FieldBuilder.cs
- WmlPanelAdapter.cs
- BinaryObjectInfo.cs
- SocketAddress.cs
- ProtocolViolationException.cs
- CodeParameterDeclarationExpressionCollection.cs
- FixedDocumentPaginator.cs
- EventInfo.cs
- DrawingVisualDrawingContext.cs
- SoapAttributeAttribute.cs
- MonthCalendar.cs
- EditingCommands.cs
- FlowLayout.cs
- AutomationEvent.cs
- DNS.cs
- SqlSelectStatement.cs
- SweepDirectionValidation.cs
- EncryptedPackage.cs
- dbenumerator.cs
- SamlAuthorizationDecisionClaimResource.cs
- MemberDomainMap.cs
- TemplateInstanceAttribute.cs
- FileDetails.cs
- SchemaImporter.cs
- Item.cs
- AttachmentService.cs
- AliasedSlot.cs
- Internal.cs
- ResXResourceSet.cs
- PointKeyFrameCollection.cs
- PropertyToken.cs
- DataGridLinkButton.cs
- ContractNamespaceAttribute.cs
- XamlVector3DCollectionSerializer.cs
- WebCodeGenerator.cs
- DataTable.cs
- ExceptionTrace.cs
- ForeignKeyConstraint.cs
- ComponentSerializationService.cs
- UnsafeNativeMethods.cs
- SeparatorAutomationPeer.cs
- Transactions.cs
- COAUTHIDENTITY.cs
- PtsHelper.cs
- ColorKeyFrameCollection.cs
- ThreadStateException.cs
- ValueChangedEventManager.cs
- EventMappingSettingsCollection.cs
- DataContractSet.cs
- EntityUtil.cs
- NamespaceInfo.cs
- InputMethodStateChangeEventArgs.cs
- EncryptedType.cs
- BaseDataList.cs
- EntityType.cs
- DirectoryInfo.cs
- DesignerActionMethodItem.cs
- GroupByQueryOperator.cs
- ListenerElementsCollection.cs
- NullableFloatMinMaxAggregationOperator.cs
- FormViewUpdatedEventArgs.cs
- UnsafeNativeMethods.cs
- FirstQueryOperator.cs
- PropertyGridEditorPart.cs
- DataChangedEventManager.cs
- HtmlElement.cs
- AnnotationMap.cs