Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Serialization / System / Runtime / Serialization / CollectionDataContractAttribute.cs / 1305376 / CollectionDataContractAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] public sealed class CollectionDataContractAttribute : Attribute { string name; string ns; string itemName; string keyName; string valueName; bool isReference; bool isNameSetExplicit; bool isNamespaceSetExplicit; bool isReferenceSetExplicit; bool isItemNameSetExplicit; bool isKeyNameSetExplicit; bool isValueNameSetExplicit; public CollectionDataContractAttribute() { } public string Namespace { get { return ns; } set { ns = value; isNamespaceSetExplicit = true; } } internal bool IsNamespaceSetExplicit { get { return isNamespaceSetExplicit; } } public string Name { get { return name; } set { name = value; isNameSetExplicit = true; } } internal bool IsNameSetExplicit { get { return isNameSetExplicit; } } public string ItemName { get { return itemName; } set { itemName = value; isItemNameSetExplicit = true; } } internal bool IsItemNameSetExplicit { get { return isItemNameSetExplicit; } } public string KeyName { get { return keyName; } set { keyName = value; isKeyNameSetExplicit = true; } } public bool IsReference { get { return isReference; } set { isReference = value; isReferenceSetExplicit = true; } } internal bool IsReferenceSetExplicit { get { return isReferenceSetExplicit; } } internal bool IsKeyNameSetExplicit { get { return isKeyNameSetExplicit; } } public string ValueName { get { return valueName; } set { valueName = value; isValueNameSetExplicit = true; } } internal bool IsValueNameSetExplicit { get { return isValueNameSetExplicit; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] public sealed class CollectionDataContractAttribute : Attribute { string name; string ns; string itemName; string keyName; string valueName; bool isReference; bool isNameSetExplicit; bool isNamespaceSetExplicit; bool isReferenceSetExplicit; bool isItemNameSetExplicit; bool isKeyNameSetExplicit; bool isValueNameSetExplicit; public CollectionDataContractAttribute() { } public string Namespace { get { return ns; } set { ns = value; isNamespaceSetExplicit = true; } } internal bool IsNamespaceSetExplicit { get { return isNamespaceSetExplicit; } } public string Name { get { return name; } set { name = value; isNameSetExplicit = true; } } internal bool IsNameSetExplicit { get { return isNameSetExplicit; } } public string ItemName { get { return itemName; } set { itemName = value; isItemNameSetExplicit = true; } } internal bool IsItemNameSetExplicit { get { return isItemNameSetExplicit; } } public string KeyName { get { return keyName; } set { keyName = value; isKeyNameSetExplicit = true; } } public bool IsReference { get { return isReference; } set { isReference = value; isReferenceSetExplicit = true; } } internal bool IsReferenceSetExplicit { get { return isReferenceSetExplicit; } } internal bool IsKeyNameSetExplicit { get { return isKeyNameSetExplicit; } } public string ValueName { get { return valueName; } set { valueName = value; isValueNameSetExplicit = true; } } internal bool IsValueNameSetExplicit { get { return isValueNameSetExplicit; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Mouse.cs
- BulletDecorator.cs
- SemaphoreSlim.cs
- BinaryCommonClasses.cs
- FirewallWrapper.cs
- CroppedBitmap.cs
- CacheOutputQuery.cs
- ConfigurationLocationCollection.cs
- WindowsClaimSet.cs
- ValueExpressions.cs
- RecognizedAudio.cs
- CellParagraph.cs
- TypePropertyEditor.cs
- WebPartUtil.cs
- PolygonHotSpot.cs
- WmlCommandAdapter.cs
- LifetimeServices.cs
- LinkedResource.cs
- SelectionHighlightInfo.cs
- PartialTrustVisibleAssembly.cs
- OpenFileDialog.cs
- TextSpanModifier.cs
- BackgroundWorker.cs
- RawTextInputReport.cs
- XmlSchemaObjectTable.cs
- CompleteWizardStep.cs
- SizeLimitedCache.cs
- NavigationService.cs
- CommandField.cs
- Soap12ProtocolReflector.cs
- TypedReference.cs
- RangeBaseAutomationPeer.cs
- Win32.cs
- Dispatcher.cs
- WebPartMovingEventArgs.cs
- OleAutBinder.cs
- StylusPointDescription.cs
- InfoCardRSACryptoProvider.cs
- WindowsListViewSubItem.cs
- AccessDataSourceView.cs
- ConfigXmlText.cs
- RecordConverter.cs
- XmlMtomReader.cs
- HttpEncoder.cs
- XmlLinkedNode.cs
- MultiTargetingUtil.cs
- ClipboardProcessor.cs
- DistributedTransactionPermission.cs
- UIElement.cs
- Accessible.cs
- JoinElimination.cs
- WebBrowserContainer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DeclarativeCatalogPart.cs
- cookie.cs
- PrintDialog.cs
- ListViewHitTestInfo.cs
- NameValueConfigurationElement.cs
- LayoutTableCell.cs
- XamlReaderHelper.cs
- DatatypeImplementation.cs
- ArithmeticException.cs
- SecureStringHasher.cs
- EntityDataSourceUtil.cs
- CodeIndexerExpression.cs
- OdbcConnectionOpen.cs
- XmlCustomFormatter.cs
- ContextProperty.cs
- GrammarBuilderRuleRef.cs
- FileNotFoundException.cs
- ActivationArguments.cs
- Point3DCollectionConverter.cs
- MaskedTextProvider.cs
- IMembershipProvider.cs
- SvcMapFileLoader.cs
- UnauthorizedAccessException.cs
- WebPartConnectionsCancelVerb.cs
- RichTextBoxDesigner.cs
- XmlCodeExporter.cs
- _AuthenticationState.cs
- XamlSerializerUtil.cs
- DelegateHelpers.Generated.cs
- PeerInputChannel.cs
- XmlTextReaderImplHelpers.cs
- TreeNodeSelectionProcessor.cs
- Axis.cs
- SkinBuilder.cs
- CaretElement.cs
- BadImageFormatException.cs
- InvalidComObjectException.cs
- hresults.cs
- ForeignConstraint.cs
- TreeNodeClickEventArgs.cs
- CngKey.cs
- Size.cs
- PersistenceProviderBehavior.cs
- FormViewInsertedEventArgs.cs
- FileDialogPermission.cs
- WindowsEditBox.cs
- XmlText.cs