Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Serialization / System / Runtime / Serialization / DataContractAttribute.cs / 1305376 / DataContractAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum, Inherited = false, AllowMultiple = false)] public sealed class DataContractAttribute : Attribute { string name; string ns; bool isNameSetExplicit; bool isNamespaceSetExplicit; bool isReference; bool isReferenceSetExplicit; public DataContractAttribute() { } public bool IsReference { get { return isReference; } set { isReference = value; isReferenceSetExplicit = true; } } internal bool IsReferenceSetExplicit { get { return isReferenceSetExplicit; } } 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; } } } } // 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
- UriTemplateDispatchFormatter.cs
- FolderBrowserDialog.cs
- SqlDataSourceQueryEditorForm.cs
- DynamicResourceExtension.cs
- QueueTransferProtocol.cs
- EventDescriptor.cs
- Animatable.cs
- HTMLTagNameToTypeMapper.cs
- KeyEvent.cs
- AudioStateChangedEventArgs.cs
- StrokeNodeData.cs
- ActiveXContainer.cs
- VisualBrush.cs
- TimeStampChecker.cs
- ArglessEventHandlerProxy.cs
- MultiBinding.cs
- DiagnosticsConfigurationHandler.cs
- KeyInstance.cs
- ListViewGroup.cs
- EdmRelationshipRoleAttribute.cs
- PackageProperties.cs
- ScriptControlManager.cs
- OracleException.cs
- ImpersonationContext.cs
- PointCollectionValueSerializer.cs
- SerializationHelper.cs
- DmlSqlGenerator.cs
- WindowsStatusBar.cs
- ThreadWorkerController.cs
- CodeDefaultValueExpression.cs
- CodeTypeMember.cs
- ToolStripDropDownMenu.cs
- RenderingEventArgs.cs
- LoggedException.cs
- TextDecorationCollection.cs
- DataViewSetting.cs
- RenderDataDrawingContext.cs
- TabletDevice.cs
- FormsAuthenticationEventArgs.cs
- Grid.cs
- ActivityExecutor.cs
- AutoResizedEvent.cs
- DesignerSerializationOptionsAttribute.cs
- Brush.cs
- DefaultObjectMappingItemCollection.cs
- GlyphRun.cs
- XmlWhitespace.cs
- TypeCollectionDesigner.xaml.cs
- TreeChangeInfo.cs
- GroupBoxAutomationPeer.cs
- precedingquery.cs
- TriggerCollection.cs
- xmlformatgeneratorstatics.cs
- ReliableChannelBinder.cs
- HostedTcpTransportManager.cs
- HttpListenerElement.cs
- assemblycache.cs
- WizardStepBase.cs
- Win32KeyboardDevice.cs
- BCLDebug.cs
- Tokenizer.cs
- Point3D.cs
- RadioButton.cs
- RecordsAffectedEventArgs.cs
- ContainerControl.cs
- DetailsViewUpdateEventArgs.cs
- AttributeSetAction.cs
- XPathNodeList.cs
- SimpleRecyclingCache.cs
- DoWorkEventArgs.cs
- PeerConnector.cs
- ExpressionEditorAttribute.cs
- HttpApplicationStateWrapper.cs
- ExplicitDiscriminatorMap.cs
- Executor.cs
- _SpnDictionary.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OperationCanceledException.cs
- FlagsAttribute.cs
- StickyNote.cs
- GeometryCollection.cs
- ConstraintManager.cs
- NullExtension.cs
- HuffmanTree.cs
- DbModificationClause.cs
- HttpBrowserCapabilitiesWrapper.cs
- NativeMethods.cs
- EffectiveValueEntry.cs
- ValidatorCollection.cs
- DesignerWebPartChrome.cs
- TemplatePartAttribute.cs
- DetailsViewUpdateEventArgs.cs
- WebPageTraceListener.cs
- InkCanvasInnerCanvas.cs
- ReadOnlyDictionary.cs
- NativeCppClassAttribute.cs
- DEREncoding.cs
- DiscoveryDocumentSearchPattern.cs
- MsmqHostedTransportConfiguration.cs
- ExtendedProperty.cs