Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AutomationProperties.cs
- MimeXmlImporter.cs
- HtmlInputImage.cs
- TileBrush.cs
- SectionInformation.cs
- ListViewTableRow.cs
- streamingZipPartStream.cs
- MenuItem.cs
- DrawingBrush.cs
- latinshape.cs
- ManagementScope.cs
- DataRowCollection.cs
- PartitionResolver.cs
- StrongNameKeyPair.cs
- BindingElementCollection.cs
- ValuePatternIdentifiers.cs
- AssemblyCollection.cs
- PkcsUtils.cs
- Utility.cs
- ZipIOLocalFileHeader.cs
- SByte.cs
- ListGeneralPage.cs
- TrackingStringDictionary.cs
- NameSpaceEvent.cs
- FigureHelper.cs
- UIAgentMonitor.cs
- SortDescription.cs
- RSAOAEPKeyExchangeFormatter.cs
- SoapObjectInfo.cs
- ClockController.cs
- EventData.cs
- UrlAuthorizationModule.cs
- InputBuffer.cs
- SourceInterpreter.cs
- ToolStripMenuItem.cs
- SiteMapPathDesigner.cs
- DoubleCollectionValueSerializer.cs
- FocusWithinProperty.cs
- GridViewPageEventArgs.cs
- DeviceContext.cs
- DrawItemEvent.cs
- Item.cs
- Currency.cs
- TextParagraphProperties.cs
- datacache.cs
- XmlEntity.cs
- RelationshipEndCollection.cs
- HtmlContainerControl.cs
- TextViewSelectionProcessor.cs
- XmlSerializerSection.cs
- RSAProtectedConfigurationProvider.cs
- QueryExpr.cs
- VarInfo.cs
- IdleTimeoutMonitor.cs
- StylusOverProperty.cs
- TextRunCache.cs
- DataGridItemEventArgs.cs
- XmlRootAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- IntSecurity.cs
- CodeGenerator.cs
- AdditionalEntityFunctions.cs
- ForEachAction.cs
- LinkButton.cs
- ObjectDataSourceView.cs
- HttpWriter.cs
- SaveFileDialog.cs
- NotImplementedException.cs
- AmbientLight.cs
- Options.cs
- Error.cs
- GregorianCalendar.cs
- XmlSchema.cs
- TrackBar.cs
- Win32PrintDialog.cs
- DependencyPropertyDescriptor.cs
- XmlWriterSettings.cs
- SoapDocumentServiceAttribute.cs
- ManagedFilter.cs
- UrlMappingCollection.cs
- FigureParaClient.cs
- UrlMapping.cs
- PropertyChangedEventArgs.cs
- InvalidFilterCriteriaException.cs
- TrackingMemoryStreamFactory.cs
- Literal.cs
- TypeDelegator.cs
- XmlSchemaAttributeGroup.cs
- RotateTransform3D.cs
- DataTrigger.cs
- HtmlTable.cs
- unitconverter.cs
- BitmapFrame.cs
- OleDbConnectionFactory.cs
- BinaryFormatterWriter.cs
- SizeConverter.cs
- PresentationTraceSources.cs
- ConstructorNeedsTagAttribute.cs
- BamlTreeNode.cs
- ModifiableIteratorCollection.cs