Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationAttributes.cs / 1 / SerializationAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Reflection; [AttributeUsage(AttributeTargets.Field, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OptionalFieldAttribute : Attribute { int versionAdded = 1; public OptionalFieldAttribute() { } public int VersionAdded { get { return this.versionAdded; } set { if (value < 1) throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue")); this.versionAdded = value; } } } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializedAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Reflection; [AttributeUsage(AttributeTargets.Field, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OptionalFieldAttribute : Attribute { int versionAdded = 1; public OptionalFieldAttribute() { } public int VersionAdded { get { return this.versionAdded; } set { if (value < 1) throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue")); this.versionAdded = value; } } } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializedAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializedAttribute : Attribute { } } // 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
- ContentPosition.cs
- ListView.cs
- CreateUserWizardStep.cs
- Events.cs
- CallbackHandler.cs
- XmlValueConverter.cs
- Utils.cs
- XAMLParseException.cs
- Drawing.cs
- SessionIDManager.cs
- TextRangeEdit.cs
- BookmarkWorkItem.cs
- ScrollableControl.cs
- ValidationResult.cs
- COM2FontConverter.cs
- CodeAttributeDeclaration.cs
- XmlSchemaSimpleTypeList.cs
- SHA384Managed.cs
- TreeNodeCollectionEditor.cs
- ToolStripItemCollection.cs
- BufferedStream.cs
- BufferedStream2.cs
- ValueTypePropertyReference.cs
- DesignerActionKeyboardBehavior.cs
- GridSplitter.cs
- ConsoleCancelEventArgs.cs
- StreamMarshaler.cs
- SessionStateSection.cs
- RelatedView.cs
- OletxTransactionManager.cs
- KeyboardDevice.cs
- Transactions.cs
- TextTreeFixupNode.cs
- Events.cs
- URIFormatException.cs
- CodeExpressionCollection.cs
- NativeMethods.cs
- TypeUtil.cs
- AttachedPropertyMethodSelector.cs
- DocumentPaginator.cs
- COM2PropertyBuilderUITypeEditor.cs
- NetworkStream.cs
- ExtentJoinTreeNode.cs
- OpenFileDialog.cs
- RuntimeIdentifierPropertyAttribute.cs
- DesignerObjectListAdapter.cs
- _ListenerRequestStream.cs
- LookupBindingPropertiesAttribute.cs
- SatelliteContractVersionAttribute.cs
- DataListCommandEventArgs.cs
- WindowsFormsHelpers.cs
- DeviceContext.cs
- RequestUriProcessor.cs
- HtmlEncodedRawTextWriter.cs
- DataGridViewCheckBoxCell.cs
- ProfileModule.cs
- WindowsListBox.cs
- PropertyInfo.cs
- GetRecipientListRequest.cs
- DigitShape.cs
- EncodingDataItem.cs
- ListControl.cs
- DataGridColumnCollectionEditor.cs
- ColorAnimation.cs
- AnimatedTypeHelpers.cs
- InProcStateClientManager.cs
- DecimalAnimationBase.cs
- _ScatterGatherBuffers.cs
- FilterException.cs
- UnsafeNativeMethods.cs
- DataSourceXmlElementAttribute.cs
- XmlQueryType.cs
- ToolboxService.cs
- GraphicsContainer.cs
- InfoCardRequestException.cs
- SafeRightsManagementSessionHandle.cs
- SolidBrush.cs
- NumberFormatter.cs
- ApplyImportsAction.cs
- CapabilitiesRule.cs
- MenuItemStyleCollection.cs
- LogStore.cs
- ActivityInstance.cs
- HighlightComponent.cs
- BitmapDownload.cs
- FixedDocumentPaginator.cs
- TrackingMemoryStream.cs
- BindableAttribute.cs
- Vector3DAnimation.cs
- ScriptingProfileServiceSection.cs
- SvcMapFileSerializer.cs
- Attributes.cs
- _SingleItemRequestCache.cs
- safex509handles.cs
- CroppedBitmap.cs
- Comparer.cs
- TabControlEvent.cs
- ControlParameter.cs
- DuplicateWaitObjectException.cs
- XPathNodeIterator.cs