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
- BinaryFormatter.cs
- FontFamily.cs
- QueryExtender.cs
- ParseNumbers.cs
- FacetValues.cs
- CodeTypeDeclarationCollection.cs
- XmlRootAttribute.cs
- MediaTimeline.cs
- FontDriver.cs
- SafeCryptoHandles.cs
- OleDbCommandBuilder.cs
- Parser.cs
- HttpCapabilitiesSectionHandler.cs
- SmiEventSink.cs
- WebControlToolBoxItem.cs
- NullReferenceException.cs
- SqlUtils.cs
- EdmSchemaAttribute.cs
- DesignerTextViewAdapter.cs
- SystemPens.cs
- ImportRequest.cs
- MenuItemStyle.cs
- PixelFormatConverter.cs
- SelectionPattern.cs
- ReadOnlyTernaryTree.cs
- DocumentSequenceHighlightLayer.cs
- IndexerHelper.cs
- TreeNodeMouseHoverEvent.cs
- XmlCharCheckingWriter.cs
- ResXResourceWriter.cs
- Timer.cs
- CultureInfoConverter.cs
- MobileRedirect.cs
- Utils.cs
- FileInfo.cs
- HtmlWindowCollection.cs
- GroupItemAutomationPeer.cs
- SupportsEventValidationAttribute.cs
- HintTextConverter.cs
- XmlUrlEditor.cs
- GlobalEventManager.cs
- ReceiveContent.cs
- DashStyle.cs
- QueryableDataSourceView.cs
- SoapFault.cs
- Tile.cs
- SafeRegistryKey.cs
- ClientType.cs
- SymLanguageType.cs
- WindowsListViewGroupHelper.cs
- SelectedDatesCollection.cs
- CssStyleCollection.cs
- TypedLocationWrapper.cs
- SynchronizationLockException.cs
- ThaiBuddhistCalendar.cs
- Error.cs
- MaskedTextBoxDesigner.cs
- HtmlHead.cs
- ThicknessAnimationBase.cs
- CoTaskMemUnicodeSafeHandle.cs
- SQLRoleProvider.cs
- ManagementObjectCollection.cs
- GlobalAllocSafeHandle.cs
- VirtualPathProvider.cs
- Debugger.cs
- DependencyPropertyKey.cs
- SuppressMergeCheckAttribute.cs
- AssemblySettingAttributes.cs
- InternalsVisibleToAttribute.cs
- WebPartsSection.cs
- TransactionalPackage.cs
- CallTemplateAction.cs
- ModelPerspective.cs
- DigitalSignatureProvider.cs
- MimeBasePart.cs
- RegexFCD.cs
- MaxValueConverter.cs
- ValueType.cs
- SignedInfo.cs
- SoapEnumAttribute.cs
- HandlerWithFactory.cs
- PermissionSetEnumerator.cs
- AspNetSynchronizationContext.cs
- DynamicUpdateCommand.cs
- WindowsGraphicsWrapper.cs
- HtmlFormWrapper.cs
- SafeLocalAllocation.cs
- WeakReadOnlyCollection.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ZipIOLocalFileHeader.cs
- FixedDocumentSequencePaginator.cs
- SchemaCreator.cs
- HttpChannelHelper.cs
- DbDataReader.cs
- AnchoredBlock.cs
- CFStream.cs
- HttpCacheParams.cs
- SectionVisual.cs
- EtwTrackingParticipant.cs
- OpCodes.cs