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
- ListItemCollection.cs
- WriterOutput.cs
- ADMembershipProvider.cs
- StylusPoint.cs
- EntityDataSourceValidationException.cs
- DataTrigger.cs
- LayoutManager.cs
- ComboBox.cs
- RelatedImageListAttribute.cs
- FlowDocumentView.cs
- CompositeActivityCodeGenerator.cs
- MessageBox.cs
- DataGridPageChangedEventArgs.cs
- PerfService.cs
- DropShadowBitmapEffect.cs
- SimpleApplicationHost.cs
- ToolboxDataAttribute.cs
- ConnectionPoolManager.cs
- ChineseLunisolarCalendar.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- FormatterServices.cs
- XamlInt32CollectionSerializer.cs
- RuntimeEnvironment.cs
- MarkupWriter.cs
- SqlCacheDependencyDatabaseCollection.cs
- SortFieldComparer.cs
- RuntimeDelegateArgument.cs
- ToolboxItem.cs
- DownloadProgressEventArgs.cs
- RefreshInfo.cs
- MultiPageTextView.cs
- RemotingHelper.cs
- BindingCompleteEventArgs.cs
- ApplicationServiceManager.cs
- FlowDocumentPaginator.cs
- TypeInfo.cs
- SqlProviderServices.cs
- NetworkInformationPermission.cs
- RegionInfo.cs
- Point3DAnimation.cs
- Misc.cs
- SubstitutionList.cs
- FontStretchConverter.cs
- APCustomTypeDescriptor.cs
- WebBrowserProgressChangedEventHandler.cs
- GACMembershipCondition.cs
- PenThreadPool.cs
- SiteMapDataSourceDesigner.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ScriptRef.cs
- FixedSOMSemanticBox.cs
- DeviceContext.cs
- ScaleTransform3D.cs
- ScriptComponentDescriptor.cs
- BuildManagerHost.cs
- ValidationResult.cs
- ClientSideProviderDescription.cs
- ResetableIterator.cs
- LogArchiveSnapshot.cs
- GridViewDeletedEventArgs.cs
- XslVisitor.cs
- UnionExpr.cs
- DataControlExtensions.cs
- PropertyInfoSet.cs
- CmsInterop.cs
- XPathNavigator.cs
- MatchingStyle.cs
- ToolStripDropDownClosedEventArgs.cs
- CheckBoxList.cs
- PasswordRecovery.cs
- XmlEnumAttribute.cs
- RegionIterator.cs
- MultiTrigger.cs
- XmlChildNodes.cs
- RequestBringIntoViewEventArgs.cs
- DbMetaDataColumnNames.cs
- CallbackCorrelationInitializer.cs
- EncodedStreamFactory.cs
- FixUpCollection.cs
- CheckBox.cs
- XmlCDATASection.cs
- AttachmentCollection.cs
- InputLanguageProfileNotifySink.cs
- XPathNodeInfoAtom.cs
- EntityDataSourceDataSelectionPanel.cs
- DataRecordInternal.cs
- CodeTypeDelegate.cs
- ExpressionBindingCollection.cs
- MSAAEventDispatcher.cs
- RootBuilder.cs
- SerializationStore.cs
- PingReply.cs
- RangeValuePattern.cs
- StateRuntime.cs
- ToolBar.cs
- Converter.cs
- TypeConvertions.cs
- ObjectHandle.cs
- DependencyObjectPropertyDescriptor.cs
- ProcessHost.cs