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
- assertwrapper.cs
- LicenseContext.cs
- EditingMode.cs
- RenderData.cs
- TreeNodeCollection.cs
- ArrayElementGridEntry.cs
- StreamDocument.cs
- WebPartConnectionsConfigureVerb.cs
- ResXFileRef.cs
- XmlDictionaryWriter.cs
- ScriptResourceHandler.cs
- Stacktrace.cs
- C14NUtil.cs
- DocumentScope.cs
- InstanceCreationEditor.cs
- GenericParameterDataContract.cs
- FlowLayoutPanel.cs
- LineServicesCallbacks.cs
- SessionStateModule.cs
- PowerStatus.cs
- SignedPkcs7.cs
- GridViewDeletedEventArgs.cs
- UInt32.cs
- ProfileProvider.cs
- ToolZone.cs
- invalidudtexception.cs
- BuildManagerHost.cs
- ToolBarButton.cs
- MetadataCacheItem.cs
- DesignerLinkAdapter.cs
- Compilation.cs
- CustomSignedXml.cs
- XslCompiledTransform.cs
- JsonFormatMapping.cs
- ContactManager.cs
- RenderData.cs
- WindowManager.cs
- DependencyPropertyKind.cs
- RemotingSurrogateSelector.cs
- DataPagerFieldCollection.cs
- EntityViewContainer.cs
- FontDialog.cs
- SqlMetaData.cs
- SmiSettersStream.cs
- XsltArgumentList.cs
- FixedPosition.cs
- PropertyManager.cs
- ProviderException.cs
- CharacterBuffer.cs
- Point4D.cs
- DataGridViewColumnCollection.cs
- HostedHttpContext.cs
- MetadataException.cs
- FontCollection.cs
- MimeMapping.cs
- ResourcePermissionBase.cs
- LookupBindingPropertiesAttribute.cs
- X509CertificateChain.cs
- Scene3D.cs
- Psha1DerivedKeyGeneratorHelper.cs
- TextLine.cs
- InputScopeAttribute.cs
- SmtpFailedRecipientException.cs
- OpenCollectionAsyncResult.cs
- XmlNotation.cs
- XmlDataSourceView.cs
- XmlSchemaObjectTable.cs
- Options.cs
- RelationshipSet.cs
- CompilerWrapper.cs
- TdsParserStaticMethods.cs
- Model3DGroup.cs
- ZeroOpNode.cs
- MaterialCollection.cs
- UInt16Storage.cs
- DataGridViewButtonColumn.cs
- FixedSOMLineCollection.cs
- Matrix.cs
- MtomMessageEncoder.cs
- WebPartMenu.cs
- CompModHelpers.cs
- BaseParagraph.cs
- TrailingSpaceComparer.cs
- TreeViewEvent.cs
- DescendentsWalker.cs
- CurrentTimeZone.cs
- CalendarDateChangedEventArgs.cs
- PageAsyncTask.cs
- RowToFieldTransformer.cs
- Missing.cs
- ComponentCommands.cs
- ProfileGroupSettingsCollection.cs
- DPTypeDescriptorContext.cs
- GeometryModel3D.cs
- UnregisterInfo.cs
- SettingsPropertyIsReadOnlyException.cs
- MessageEncoder.cs
- IsolatedStorageFilePermission.cs
- AsyncCompletedEventArgs.cs
- TextEvent.cs