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
- HyperLink.cs
- XmlTextWriter.cs
- XmlILStorageConverter.cs
- securitycriticaldataClass.cs
- FlowDocumentReaderAutomationPeer.cs
- ViewKeyConstraint.cs
- VisualStateManager.cs
- PermissionToken.cs
- GroupDescription.cs
- TypeTypeConverter.cs
- ReadOnlyTernaryTree.cs
- TraceEventCache.cs
- TraceHandlerErrorFormatter.cs
- AutomationPatternInfo.cs
- GridViewColumnHeader.cs
- RangeValuePatternIdentifiers.cs
- NamespaceEmitter.cs
- CompiledIdentityConstraint.cs
- mactripleDES.cs
- TreeBuilder.cs
- XmlDocumentSerializer.cs
- SecureUICommand.cs
- HttpApplicationFactory.cs
- CodeAttributeDeclarationCollection.cs
- ReversePositionQuery.cs
- OLEDB_Util.cs
- Util.cs
- AttributeQuery.cs
- ConvertEvent.cs
- TypefaceMetricsCache.cs
- CodeCatchClauseCollection.cs
- EntityClassGenerator.cs
- PrinterResolution.cs
- GestureRecognizer.cs
- XpsPartBase.cs
- CommentEmitter.cs
- ProjectionPruner.cs
- AnimationTimeline.cs
- CharStorage.cs
- PropVariant.cs
- ContainerParagraph.cs
- XmlSchemaComplexContent.cs
- Propagator.JoinPropagator.cs
- ListBindingHelper.cs
- HttpCookie.cs
- Executor.cs
- UdpSocket.cs
- ToolStripControlHost.cs
- TimeStampChecker.cs
- TabletDeviceInfo.cs
- ExtensionQuery.cs
- Missing.cs
- MultiViewDesigner.cs
- DragEvent.cs
- XsltSettings.cs
- XpsS0ValidatingLoader.cs
- SqlConnectionHelper.cs
- CacheEntry.cs
- InnerItemCollectionView.cs
- BaseAsyncResult.cs
- LeafCellTreeNode.cs
- WebZone.cs
- TextOutput.cs
- EnumerableRowCollectionExtensions.cs
- DesigntimeLicenseContext.cs
- FrameworkContextData.cs
- GridPattern.cs
- DetailsViewDeletedEventArgs.cs
- COM2ComponentEditor.cs
- TextEmbeddedObject.cs
- Transform3D.cs
- XPathBuilder.cs
- ActivityCodeGenerator.cs
- Win32Exception.cs
- SQLBytes.cs
- EventLogger.cs
- ImmutableObjectAttribute.cs
- ShaderRenderModeValidation.cs
- CodeArrayCreateExpression.cs
- SqlInternalConnection.cs
- Profiler.cs
- RawStylusInput.cs
- PersonalizationProviderCollection.cs
- SQLDecimal.cs
- DesignerProperties.cs
- SizeLimitedCache.cs
- Stroke2.cs
- WebBrowser.cs
- MarshalDirectiveException.cs
- LinearGradientBrush.cs
- SQLDecimal.cs
- Transform3DGroup.cs
- DrawingState.cs
- ApplyTemplatesAction.cs
- Material.cs
- HttpCachePolicyBase.cs
- WebPermission.cs
- RelOps.cs
- XmlSchemaSimpleContentRestriction.cs
- sqlinternaltransaction.cs