Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextParagraphCache.cs
- TextElementCollection.cs
- HttpResponseHeader.cs
- HashCodeCombiner.cs
- ControlLocalizer.cs
- BufferModesCollection.cs
- DataSourceSelectArguments.cs
- ClientBase.cs
- PresentationAppDomainManager.cs
- COM2PropertyPageUITypeConverter.cs
- BitmapEffect.cs
- OledbConnectionStringbuilder.cs
- TraceHandler.cs
- StringConcat.cs
- Timeline.cs
- Bitmap.cs
- LabelDesigner.cs
- CompilerResults.cs
- CharStorage.cs
- StringValidator.cs
- CaretElement.cs
- DetailsViewPageEventArgs.cs
- Crc32.cs
- Descriptor.cs
- SHA1CryptoServiceProvider.cs
- XmlUtil.cs
- CheckableControlBaseAdapter.cs
- Stack.cs
- BooleanKeyFrameCollection.cs
- XmlAttributeOverrides.cs
- FixedSOMElement.cs
- XamlTypeMapper.cs
- CompilationLock.cs
- InlineUIContainer.cs
- RectangleF.cs
- ModifierKeysConverter.cs
- FolderBrowserDialog.cs
- GridViewSelectEventArgs.cs
- DocumentEventArgs.cs
- DocumentEventArgs.cs
- DataGridViewRowHeaderCell.cs
- StorageModelBuildProvider.cs
- SessionIDManager.cs
- CompositeScriptReference.cs
- GeometryGroup.cs
- Currency.cs
- ObjectParameter.cs
- BitmapImage.cs
- CodeTypeDelegate.cs
- ColumnResult.cs
- FlowLayoutSettings.cs
- PostBackTrigger.cs
- Misc.cs
- MenuRenderer.cs
- clipboard.cs
- RegexWorker.cs
- RuntimeTransactionHandle.cs
- DataServicePagingProviderWrapper.cs
- PrincipalPermission.cs
- InputDevice.cs
- PermissionSetEnumerator.cs
- GridViewRowPresenter.cs
- Camera.cs
- PinnedBufferMemoryStream.cs
- NetworkCredential.cs
- IteratorFilter.cs
- ContentType.cs
- TextBox.cs
- ActiveXSite.cs
- FunctionQuery.cs
- ColumnMapProcessor.cs
- FormatStringEditor.cs
- Debug.cs
- safelinkcollection.cs
- DbgCompiler.cs
- OpenFileDialog.cs
- FormatStringEditor.cs
- WebPartConnectionsCancelEventArgs.cs
- HiddenField.cs
- TextTreeUndo.cs
- KeyManager.cs
- XPathNodeIterator.cs
- AdCreatedEventArgs.cs
- HttpCachePolicy.cs
- CharacterMetrics.cs
- SubMenuStyle.cs
- XmlAnyAttributeAttribute.cs
- PackagePartCollection.cs
- ListViewItem.cs
- WebPartsPersonalizationAuthorization.cs
- CodeIdentifiers.cs
- EmptyStringExpandableObjectConverter.cs
- HtmlCalendarAdapter.cs
- ActivityExecutorOperation.cs
- XmlExceptionHelper.cs
- ToolBar.cs
- DateTimeConverter2.cs
- TypeDescriptionProvider.cs
- XmlFormatWriterGenerator.cs
- SystemException.cs