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
- FixedPageAutomationPeer.cs
- DependencyObject.cs
- DataContract.cs
- BulletedList.cs
- BooleanAnimationUsingKeyFrames.cs
- HtmlButton.cs
- Image.cs
- PerformanceCountersElement.cs
- _NegoStream.cs
- GridViewUpdatedEventArgs.cs
- ControlParser.cs
- XmlTextWriter.cs
- FontInfo.cs
- SqlProfileProvider.cs
- DragDrop.cs
- InvalidCommandTreeException.cs
- RemoteWebConfigurationHostServer.cs
- WindowHideOrCloseTracker.cs
- CellIdBoolean.cs
- RectangleF.cs
- ResourceSet.cs
- XmlElementElementCollection.cs
- TabPageDesigner.cs
- ZipIOExtraFieldElement.cs
- FileUpload.cs
- BitArray.cs
- QueryableFilterRepeater.cs
- FontStyles.cs
- TypeExtension.cs
- XmlSchemaChoice.cs
- XomlCompilerResults.cs
- TransformConverter.cs
- XmlAtomicValue.cs
- UrlAuthorizationModule.cs
- NumberSubstitution.cs
- Bold.cs
- Renderer.cs
- Expression.cs
- RowsCopiedEventArgs.cs
- HostedTransportConfigurationBase.cs
- ToolStripDropDownClosingEventArgs.cs
- ChannelBuilder.cs
- CellTreeNode.cs
- ValidatorCompatibilityHelper.cs
- SmiSettersStream.cs
- ComponentCodeDomSerializer.cs
- InputLanguageCollection.cs
- HelpEvent.cs
- LongValidator.cs
- CountAggregationOperator.cs
- PingOptions.cs
- WindowHideOrCloseTracker.cs
- DataRecordInternal.cs
- PrintDocument.cs
- _ShellExpression.cs
- Classification.cs
- TextEditorSelection.cs
- CryptoConfig.cs
- Style.cs
- Int32.cs
- SHA256Managed.cs
- DependencyObjectPropertyDescriptor.cs
- printdlgexmarshaler.cs
- HostProtectionPermission.cs
- ExitEventArgs.cs
- TCEAdapterGenerator.cs
- ExpressionBindingCollection.cs
- AnnotationService.cs
- Pen.cs
- XmlSignatureManifest.cs
- Solver.cs
- IconConverter.cs
- MultiBinding.cs
- SupportsEventValidationAttribute.cs
- StrokeNode.cs
- KnownTypes.cs
- CultureInfo.cs
- SingleStorage.cs
- Polygon.cs
- WebExceptionStatus.cs
- filewebrequest.cs
- DBDataPermission.cs
- XMLDiffLoader.cs
- Light.cs
- PersistenceTypeAttribute.cs
- TabControl.cs
- DataObjectMethodAttribute.cs
- HttpResponse.cs
- ListViewGroupItemCollection.cs
- UriTemplateTableMatchCandidate.cs
- DbMetaDataCollectionNames.cs
- DomainUpDown.cs
- ResourceAssociationSetEnd.cs
- PageParserFilter.cs
- ColorTransform.cs
- CallInfo.cs
- SparseMemoryStream.cs
- EventProviderWriter.cs
- ValueChangedEventManager.cs
- ProfileBuildProvider.cs