Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationAttributes.cs / 1305376 / SerializationAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System; using System.Diagnostics.Contracts; 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")); Contract.EndContractBlock(); 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
- ValidationRuleCollection.cs
- DataServiceKeyAttribute.cs
- Image.cs
- _AutoWebProxyScriptHelper.cs
- ExpressionBindingCollection.cs
- FileAuthorizationModule.cs
- PageBuildProvider.cs
- StringFunctions.cs
- SafeEventLogReadHandle.cs
- XmlAnyElementAttribute.cs
- ExtendedProtectionPolicy.cs
- InvokeAction.cs
- CallbackValidatorAttribute.cs
- GroupDescription.cs
- Bidi.cs
- ServiceMetadataBehavior.cs
- DataGridTextBox.cs
- SynchronousReceiveElement.cs
- ContactManager.cs
- ScopelessEnumAttribute.cs
- HttpEncoder.cs
- PropertyEmitter.cs
- TakeOrSkipWhileQueryOperator.cs
- BrowserInteropHelper.cs
- ValueProviderWrapper.cs
- DataGridViewColumnEventArgs.cs
- SqlInternalConnectionSmi.cs
- TargetException.cs
- GorillaCodec.cs
- EpmTargetTree.cs
- TextParagraphCache.cs
- ConfigurationManagerInternalFactory.cs
- AutomationEventArgs.cs
- HashMembershipCondition.cs
- PKCS1MaskGenerationMethod.cs
- SessionStateUtil.cs
- RectangleGeometry.cs
- SimpleRecyclingCache.cs
- OleDbParameter.cs
- OleDbEnumerator.cs
- OrderedEnumerableRowCollection.cs
- RowTypeElement.cs
- WpfWebRequestHelper.cs
- ListView.cs
- RelationshipNavigation.cs
- MemberMaps.cs
- DelegatingTypeDescriptionProvider.cs
- ParagraphResult.cs
- AncestorChangedEventArgs.cs
- BoolExpr.cs
- Table.cs
- DataGridViewRowsRemovedEventArgs.cs
- DocumentViewerAutomationPeer.cs
- Button.cs
- ForeignKeyConstraint.cs
- ProxyAttribute.cs
- MenuItemStyleCollection.cs
- ThreadAttributes.cs
- UInt16Storage.cs
- PrimitiveType.cs
- StyleCollection.cs
- _SslSessionsCache.cs
- TypeName.cs
- LoginDesigner.cs
- DbProviderConfigurationHandler.cs
- DesignTimeVisibleAttribute.cs
- SnapshotChangeTrackingStrategy.cs
- ExpressionWriter.cs
- OrderedDictionary.cs
- WmpBitmapDecoder.cs
- DefinitionBase.cs
- TrustManagerMoreInformation.cs
- XmlSiteMapProvider.cs
- SortDescriptionCollection.cs
- QuaternionAnimation.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ControlAdapter.cs
- InternalSafeNativeMethods.cs
- ResizeGrip.cs
- XamlToRtfParser.cs
- IncrementalCompileAnalyzer.cs
- NavigationService.cs
- tooltip.cs
- JpegBitmapEncoder.cs
- WindowsToolbarItemAsMenuItem.cs
- ReaderWriterLockWrapper.cs
- PDBReader.cs
- CapabilitiesRule.cs
- SettingsAttributeDictionary.cs
- Typography.cs
- BorderGapMaskConverter.cs
- DesignerActionService.cs
- AllMembershipCondition.cs
- SizeAnimationUsingKeyFrames.cs
- ScriptingAuthenticationServiceSection.cs
- BooleanFunctions.cs
- MemoryRecordBuffer.cs
- SymDocumentType.cs
- ClientTargetCollection.cs
- CodeDOMProvider.cs