Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- HttpHostedTransportConfiguration.cs
- XmlAnyElementAttributes.cs
- Misc.cs
- WriteTimeStream.cs
- XmlNodeChangedEventArgs.cs
- ContainerSelectorActiveEvent.cs
- ProgressBarBrushConverter.cs
- Win32Exception.cs
- X509CertificateInitiatorClientCredential.cs
- AuthenticationService.cs
- WebConfigurationFileMap.cs
- ControlIdConverter.cs
- ParserOptions.cs
- PathParser.cs
- ReflectTypeDescriptionProvider.cs
- SQLUtility.cs
- TemplatedMailWebEventProvider.cs
- SubMenuStyleCollection.cs
- ParallelTimeline.cs
- XmlException.cs
- WindowsUpDown.cs
- EventItfInfo.cs
- HttpContextServiceHost.cs
- GlobalDataBindingHandler.cs
- ObjectListShowCommandsEventArgs.cs
- HtmlMeta.cs
- SoapProtocolImporter.cs
- AssemblyFilter.cs
- ProfileWorkflowElement.cs
- Latin1Encoding.cs
- GlyphingCache.cs
- PropertyInfoSet.cs
- Itemizer.cs
- SortedList.cs
- Item.cs
- AbandonedMutexException.cs
- LineUtil.cs
- Column.cs
- SAPIEngineTypes.cs
- ICollection.cs
- MediaTimeline.cs
- KeyTime.cs
- GlyphManager.cs
- objectresult_tresulttype.cs
- UniqueTransportManagerRegistration.cs
- NativeMethods.cs
- ExtensionFile.cs
- ConvertersCollection.cs
- DataServiceClientException.cs
- BrowserCapabilitiesCompiler.cs
- GridPattern.cs
- RemotingServices.cs
- BinarySerializer.cs
- DataExchangeServiceBinder.cs
- StreamWriter.cs
- TemplateControlCodeDomTreeGenerator.cs
- TypePresenter.xaml.cs
- Int64Storage.cs
- PixelShader.cs
- RightNameExpirationInfoPair.cs
- TableParagraph.cs
- MessageAction.cs
- OptimalBreakSession.cs
- ProjectedSlot.cs
- XmlElement.cs
- NegotiateStream.cs
- FixedSOMTableRow.cs
- FormViewUpdatedEventArgs.cs
- StreamSecurityUpgradeInitiator.cs
- ConfigurationErrorsException.cs
- PasswordRecovery.cs
- PerformanceCounterCategory.cs
- OdbcPermission.cs
- WebService.cs
- Source.cs
- SystemWebSectionGroup.cs
- SurrogateDataContract.cs
- GeneratedView.cs
- LinearGradientBrush.cs
- SyndicationSerializer.cs
- ClientTargetSection.cs
- ParallelDesigner.cs
- PublisherIdentityPermission.cs
- ResourceDisplayNameAttribute.cs
- PersonalizablePropertyEntry.cs
- InputElement.cs
- FrameworkContentElement.cs
- Model3DCollection.cs
- SiteMapProvider.cs
- ActiveXSite.cs
- SecurityTokenParametersEnumerable.cs
- SerializationFieldInfo.cs
- TrimSurroundingWhitespaceAttribute.cs
- SharedConnectionInfo.cs
- WebServiceErrorEvent.cs
- XamlHostingSectionGroup.cs
- XhtmlBasicCalendarAdapter.cs
- NumericUpDownAccelerationCollection.cs
- SecurityContextTokenCache.cs
- TrackingLocationCollection.cs