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
- XmlSchemaAny.cs
- RectangleHotSpot.cs
- ListComponentEditor.cs
- NamedPermissionSet.cs
- CompositeDataBoundControl.cs
- OleAutBinder.cs
- unsafenativemethodstextservices.cs
- GenericsNotImplementedException.cs
- DataGridToolTip.cs
- ListDataBindEventArgs.cs
- URIFormatException.cs
- RequestCachePolicy.cs
- ToolStrip.cs
- XmlSignatureProperties.cs
- DbSourceParameterCollection.cs
- DataGridColumnsPage.cs
- ConfigurationManagerHelperFactory.cs
- SqlErrorCollection.cs
- WebPartManagerDesigner.cs
- ProtocolsConfigurationHandler.cs
- util.cs
- KnownAssembliesSet.cs
- StatusBarItemAutomationPeer.cs
- TripleDES.cs
- GenericIdentity.cs
- safelink.cs
- RemotingException.cs
- IPGlobalProperties.cs
- BlockUIContainer.cs
- Msmq.cs
- VirtualizingPanel.cs
- DataColumnPropertyDescriptor.cs
- FunctionCommandText.cs
- UndirectedGraph.cs
- ClientScriptManager.cs
- TableParaClient.cs
- AlternateViewCollection.cs
- ImageFormatConverter.cs
- PrintEvent.cs
- exports.cs
- AttributeTableBuilder.cs
- XmlChildNodes.cs
- ModuleBuilder.cs
- DesignerRegionCollection.cs
- MetadataArtifactLoaderResource.cs
- ScriptServiceAttribute.cs
- XmlSchemaCompilationSettings.cs
- QilBinary.cs
- WSSecureConversationFeb2005.cs
- PingReply.cs
- SByteConverter.cs
- BuildResult.cs
- NavigatingCancelEventArgs.cs
- RadioButtonPopupAdapter.cs
- StringFreezingAttribute.cs
- ViewStateChangedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- TextRunCacheImp.cs
- XmlMembersMapping.cs
- WebException.cs
- XmlExpressionDumper.cs
- SqlConnectionStringBuilder.cs
- ManifestResourceInfo.cs
- ConstraintEnumerator.cs
- RangeBaseAutomationPeer.cs
- BatchParser.cs
- Rethrow.cs
- FontDialog.cs
- DatePicker.cs
- DataGridViewCellMouseEventArgs.cs
- DataGridViewControlCollection.cs
- GlobalItem.cs
- ContextConfiguration.cs
- InstanceKeyCompleteException.cs
- ProfileGroupSettingsCollection.cs
- CommandLibraryHelper.cs
- HopperCache.cs
- ValueUtilsSmi.cs
- ProxyAttribute.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- Win32KeyboardDevice.cs
- AttributeCollection.cs
- SmiRecordBuffer.cs
- UnSafeCharBuffer.cs
- IsolatedStoragePermission.cs
- StateDesignerConnector.cs
- safelinkcollection.cs
- DeclarationUpdate.cs
- NetworkStream.cs
- _SecureChannel.cs
- BindingEditor.xaml.cs
- X509UI.cs
- PersonalizationProvider.cs
- InputMethodStateTypeInfo.cs
- BaseCodePageEncoding.cs
- CodeLinePragma.cs
- CornerRadius.cs
- PolyQuadraticBezierSegment.cs
- IntegrationExceptionEventArgs.cs
- SharedStatics.cs