Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Serialization / System / Runtime / Serialization / DataMemberAttribute.cs / 1 / DataMemberAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.Serialization { [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = false, AllowMultiple = false)] public sealed class DataMemberAttribute : Attribute { string name; bool isNameSetExplicit; int order = -1; bool isRequired; bool emitDefaultValue = Globals.DefaultEmitDefaultValue; public DataMemberAttribute() { } public string Name { get { return name; } set { name = value; isNameSetExplicit = true;} } internal bool IsNameSetExplicit { get { return isNameSetExplicit; } } public int Order { get { return order; } set { if (value < 0) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.GetString(SR.OrderCannotBeNegative))); order = value; } } public bool IsRequired { get { return isRequired; } set { isRequired = value; } } public bool EmitDefaultValue { get { return emitDefaultValue; } set { emitDefaultValue = value; } } } } // 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
- MessageBuilder.cs
- XmlCharacterData.cs
- AudioFormatConverter.cs
- WindowsTreeView.cs
- XmlCDATASection.cs
- ButtonChrome.cs
- CompositeCollectionView.cs
- PersonalizationStateInfoCollection.cs
- WebHttpBindingElement.cs
- SafeNativeMethods.cs
- XmlWellformedWriter.cs
- DoubleIndependentAnimationStorage.cs
- ClientScriptManager.cs
- XPathBinder.cs
- X509UI.cs
- KeyValueSerializer.cs
- ObjectQueryState.cs
- TextBox.cs
- Int32RectValueSerializer.cs
- Pool.cs
- WebCategoryAttribute.cs
- GradientSpreadMethodValidation.cs
- ProcessModelSection.cs
- ResolveNextArgumentWorkItem.cs
- Registry.cs
- StrokeDescriptor.cs
- HighContrastHelper.cs
- PopupEventArgs.cs
- SqlConnectionStringBuilder.cs
- SaveFileDialog.cs
- GetImportedCardRequest.cs
- CoTaskMemUnicodeSafeHandle.cs
- ManagedFilter.cs
- TargetParameterCountException.cs
- TypedRowHandler.cs
- CodeMethodMap.cs
- ConnectorDragDropGlyph.cs
- SQLByteStorage.cs
- CqlQuery.cs
- AuthenticationService.cs
- PositiveTimeSpanValidator.cs
- KoreanCalendar.cs
- EntitySqlQueryCacheEntry.cs
- CodeMemberEvent.cs
- RequestUriProcessor.cs
- Convert.cs
- SimpleWebHandlerParser.cs
- TableStyle.cs
- TreeNodeCollection.cs
- MatrixTransform.cs
- infer.cs
- StringUtil.cs
- Form.cs
- XmlRootAttribute.cs
- RangeValidator.cs
- ClockController.cs
- EnterpriseServicesHelper.cs
- TextDpi.cs
- Vector3DAnimationBase.cs
- BindingRestrictions.cs
- SqlConnectionHelper.cs
- path.cs
- BulletChrome.cs
- TypedElement.cs
- AuthenticationModuleElement.cs
- GroupBoxAutomationPeer.cs
- SizeLimitedCache.cs
- GreenMethods.cs
- CookieParameter.cs
- ChtmlImageAdapter.cs
- _NetworkingPerfCounters.cs
- RuntimeUtils.cs
- RIPEMD160.cs
- WriterOutput.cs
- ProxyHwnd.cs
- ImmutableCollection.cs
- GridProviderWrapper.cs
- UnsafeNativeMethods.cs
- AjaxFrameworkAssemblyAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- DrawingVisual.cs
- GlobalizationSection.cs
- DocumentPageView.cs
- AccessControlList.cs
- TypedReference.cs
- RecognizerInfo.cs
- DateTimePicker.cs
- TabControlCancelEvent.cs
- ContentControl.cs
- BufferedStream.cs
- Point3DCollectionConverter.cs
- EntitySetRetriever.cs
- Themes.cs
- TextParentUndoUnit.cs
- IndexerNameAttribute.cs
- DataObjectSettingDataEventArgs.cs
- XmlSchemaValidator.cs
- StandardBindingImporter.cs
- DispatcherExceptionFilterEventArgs.cs
- CodePageUtils.cs