Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PersistChildrenAttribute.cs
- WebPartCancelEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TileBrush.cs
- RequestCache.cs
- DefaultValueMapping.cs
- ViewStateException.cs
- DockProviderWrapper.cs
- StructuredProperty.cs
- SqlServices.cs
- AutomationElementCollection.cs
- DbReferenceCollection.cs
- DocumentPage.cs
- SerialErrors.cs
- GenericQueueSurrogate.cs
- PocoEntityKeyStrategy.cs
- ObjectSet.cs
- ToolStripSplitStackLayout.cs
- UpdatePanelTrigger.cs
- PathGradientBrush.cs
- ReturnType.cs
- ArrayWithOffset.cs
- ScriptDescriptor.cs
- ValueUtilsSmi.cs
- ComNativeDescriptor.cs
- ExpressionBuilder.cs
- ComponentConverter.cs
- MetadataArtifactLoaderResource.cs
- XmlChildNodes.cs
- IPGlobalProperties.cs
- CurrencyWrapper.cs
- Tile.cs
- Empty.cs
- ChildDocumentBlock.cs
- ComplexBindingPropertiesAttribute.cs
- FastEncoderWindow.cs
- ConsumerConnectionPointCollection.cs
- MessageHeaders.cs
- TextLineBreak.cs
- GridItemPattern.cs
- CustomWebEventKey.cs
- _SSPIWrapper.cs
- ViewSimplifier.cs
- EventProviderWriter.cs
- PromptBuilder.cs
- ToolStripLocationCancelEventArgs.cs
- TransactionProtocolConverter.cs
- XmlNode.cs
- SecurityCredentialsManager.cs
- XmlFormatWriterGenerator.cs
- PropertyInfoSet.cs
- RoleServiceManager.cs
- WebPartTransformerAttribute.cs
- DependentTransaction.cs
- GenericAuthenticationEventArgs.cs
- HttpContextBase.cs
- XmlSerializerAssemblyAttribute.cs
- Utils.cs
- followingquery.cs
- BindingValueChangedEventArgs.cs
- ButtonField.cs
- sqlpipe.cs
- EncodingInfo.cs
- XmlSerializationWriter.cs
- SocketInformation.cs
- ScriptHandlerFactory.cs
- SocketException.cs
- FrameworkContextData.cs
- ManagedIStream.cs
- ToolStripSettings.cs
- XmlSchemaAny.cs
- FormsAuthenticationConfiguration.cs
- RuntimeEnvironment.cs
- CorrelationQuery.cs
- DataDocumentXPathNavigator.cs
- ProgressBar.cs
- RSACryptoServiceProvider.cs
- DataRowExtensions.cs
- DbProviderFactories.cs
- ResolveNameEventArgs.cs
- filewebresponse.cs
- HostExecutionContextManager.cs
- Base64Decoder.cs
- SqlInternalConnectionTds.cs
- GlobalEventManager.cs
- CommandBinding.cs
- AttributeData.cs
- DataGridViewSortCompareEventArgs.cs
- CachedTypeface.cs
- Ipv6Element.cs
- StateWorkerRequest.cs
- WinEventQueueItem.cs
- DataRow.cs
- ReadOnlyDataSourceView.cs
- WebBrowserSiteBase.cs
- ListControlDesigner.cs
- NegotiateStream.cs
- TypeConverterHelper.cs
- RawStylusSystemGestureInputReport.cs
- GeneralTransform3D.cs