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
- XamlBuildProvider.cs
- MasterPageCodeDomTreeGenerator.cs
- CustomValidator.cs
- AnimationTimeline.cs
- TextFindEngine.cs
- SslStreamSecurityBindingElement.cs
- StreamGeometry.cs
- ListManagerBindingsCollection.cs
- VerticalAlignConverter.cs
- MessageQuerySet.cs
- LifetimeManager.cs
- DummyDataSource.cs
- xmlfixedPageInfo.cs
- SystemEvents.cs
- DbFunctionCommandTree.cs
- CatalogZoneBase.cs
- TypeLoadException.cs
- ListBindableAttribute.cs
- CounterCreationData.cs
- DecimalAnimation.cs
- TCPListener.cs
- UserMapPath.cs
- StylusLogic.cs
- ComboBoxRenderer.cs
- DataControlFieldCell.cs
- SkipStoryboardToFill.cs
- CodeTypeDeclaration.cs
- XmlWriterSettings.cs
- BatchServiceHost.cs
- Stylus.cs
- VarRemapper.cs
- ResourceDictionaryCollection.cs
- ConfigViewGenerator.cs
- DocumentOutline.cs
- StickyNoteHelper.cs
- HttpChannelBindingToken.cs
- COAUTHIDENTITY.cs
- IgnoreFileBuildProvider.cs
- DemultiplexingDispatchMessageFormatter.cs
- CustomError.cs
- Guid.cs
- ServerIdentity.cs
- ScriptHandlerFactory.cs
- CancelEventArgs.cs
- JoinElimination.cs
- XPathBinder.cs
- ArraySortHelper.cs
- BuilderPropertyEntry.cs
- DesignerVerbCollection.cs
- ImplicitInputBrush.cs
- AttributeCollection.cs
- SecurityState.cs
- Blend.cs
- CodeBinaryOperatorExpression.cs
- DependencyPropertyHelper.cs
- ByteAnimationUsingKeyFrames.cs
- DynamicAttribute.cs
- XmlHierarchyData.cs
- KeyGesture.cs
- ValidationSummary.cs
- HostingEnvironmentException.cs
- AppDomainUnloadedException.cs
- SafeHandle.cs
- LassoSelectionBehavior.cs
- _RequestLifetimeSetter.cs
- UiaCoreProviderApi.cs
- SafeCryptoHandles.cs
- XmlTypeAttribute.cs
- SQLBinary.cs
- LocatorPartList.cs
- ArraySet.cs
- Splitter.cs
- DesignerTransaction.cs
- XamlPathDataSerializer.cs
- FlowchartDesignerCommands.cs
- DocumentSchemaValidator.cs
- UseLicense.cs
- CollectionsUtil.cs
- TypeDelegator.cs
- CodeMemberProperty.cs
- EmptyQuery.cs
- Hash.cs
- CommandField.cs
- SoapSchemaMember.cs
- IndexerHelper.cs
- ValueType.cs
- RadioButtonList.cs
- ScriptManager.cs
- ThreadExceptionDialog.cs
- UserMapPath.cs
- TcpClientChannel.cs
- CatalogPartChrome.cs
- UndoManager.cs
- X509ThumbprintKeyIdentifierClause.cs
- DataGridViewRowsRemovedEventArgs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- RectangleF.cs
- StateManagedCollection.cs
- AttributeExtensions.cs
- SmtpException.cs