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
- ADMembershipProvider.cs
- HScrollProperties.cs
- TextInfo.cs
- TableProviderWrapper.cs
- DotExpr.cs
- UIntPtr.cs
- IpcServerChannel.cs
- ExpandedWrapper.cs
- SafeNativeMethods.cs
- OracleMonthSpan.cs
- SourceFileBuildProvider.cs
- Bezier.cs
- DbReferenceCollection.cs
- RangeValuePatternIdentifiers.cs
- ProxyFragment.cs
- SpeechEvent.cs
- ResourceDisplayNameAttribute.cs
- CheckBoxList.cs
- SecurityResources.cs
- BitmapSource.cs
- ImportCatalogPart.cs
- HostedImpersonationContext.cs
- WindowsNonControl.cs
- SqlNotificationEventArgs.cs
- SingleObjectCollection.cs
- CompositeCollection.cs
- SQLInt16Storage.cs
- EntityDataSource.cs
- SchemaObjectWriter.cs
- SqlBulkCopyColumnMapping.cs
- AnnouncementEndpointElement.cs
- Site.cs
- InternalUserCancelledException.cs
- NetNamedPipeBinding.cs
- Property.cs
- OperationAbortedException.cs
- MaskDesignerDialog.cs
- PolicyLevel.cs
- PriorityRange.cs
- UnsafeNativeMethods.cs
- Panel.cs
- ActionItem.cs
- AVElementHelper.cs
- IndexerHelper.cs
- AutomationPropertyInfo.cs
- SymmetricCryptoHandle.cs
- GeneralTransform.cs
- PolyBezierSegmentFigureLogic.cs
- DataColumnMapping.cs
- TagPrefixInfo.cs
- ServiceInfoCollection.cs
- DataServiceKeyAttribute.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataGridViewTextBoxEditingControl.cs
- TraceListeners.cs
- DeviceContext2.cs
- ListItemConverter.cs
- StatusStrip.cs
- ClientUIRequest.cs
- BidOverLoads.cs
- DtdParser.cs
- MasterPageCodeDomTreeGenerator.cs
- CompositionDesigner.cs
- AttachedAnnotationChangedEventArgs.cs
- Subset.cs
- Repeater.cs
- PKCS1MaskGenerationMethod.cs
- WinFormsSpinner.cs
- BindingOperations.cs
- documentsequencetextview.cs
- DynamicActivity.cs
- KerberosReceiverSecurityToken.cs
- AncillaryOps.cs
- CustomValidator.cs
- TimeSpanConverter.cs
- RootBuilder.cs
- LinkTarget.cs
- AmbientValueAttribute.cs
- MultiBindingExpression.cs
- RtType.cs
- GuidTagList.cs
- Stylesheet.cs
- ZoneMembershipCondition.cs
- CustomWebEventKey.cs
- CodeCommentStatement.cs
- SystemIPGlobalStatistics.cs
- HotCommands.cs
- HGlobalSafeHandle.cs
- CodeTypeDelegate.cs
- MessageHeaderException.cs
- UriScheme.cs
- DataGridItemCollection.cs
- TargetInvocationException.cs
- MemberHolder.cs
- EnumerableRowCollectionExtensions.cs
- SqlDataSourceView.cs
- DefaultPrintController.cs
- HttpHandlerActionCollection.cs
- StreamUpdate.cs
- AppDomainFactory.cs