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
- CodeConstructor.cs
- NegotiateStream.cs
- DefaultTextStoreTextComposition.cs
- Span.cs
- Timer.cs
- Opcode.cs
- SoapUnknownHeader.cs
- MtomMessageEncodingBindingElement.cs
- EntityTypeBase.cs
- StrokeCollectionConverter.cs
- TraceContext.cs
- RequestCache.cs
- AutomationPeer.cs
- HttpModuleActionCollection.cs
- TreeViewImageGenerator.cs
- GetLastErrorDetailsRequest.cs
- VisualProxy.cs
- Byte.cs
- InvariantComparer.cs
- ResourcesBuildProvider.cs
- CompilerGlobalScopeAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- AuthenticationServiceManager.cs
- AsynchronousChannel.cs
- WebScriptEnablingBehavior.cs
- GenericTypeParameterBuilder.cs
- CommentEmitter.cs
- listitem.cs
- OdbcConnectionOpen.cs
- GenericUriParser.cs
- unitconverter.cs
- BufferBuilder.cs
- HttpCookieCollection.cs
- TransformValueSerializer.cs
- QueryStringParameter.cs
- WindowsScrollBar.cs
- QueryReaderSettings.cs
- OleDbReferenceCollection.cs
- SocketElement.cs
- ListControlStringCollectionEditor.cs
- RelationshipFixer.cs
- MaterializeFromAtom.cs
- TaiwanCalendar.cs
- DataServiceKeyAttribute.cs
- DBAsyncResult.cs
- TextMetrics.cs
- FileUpload.cs
- TrackPointCollection.cs
- ValidatingPropertiesEventArgs.cs
- DetailsViewRowCollection.cs
- DefaultAuthorizationContext.cs
- XmlLinkedNode.cs
- FixedFindEngine.cs
- ComponentResourceKeyConverter.cs
- SqlDataReader.cs
- DragEvent.cs
- BindingsCollection.cs
- BookmarkWorkItem.cs
- HtmlInputReset.cs
- PopupControlService.cs
- CheckableControlBaseAdapter.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextDecorationUnitValidation.cs
- DragStartedEventArgs.cs
- HttpContext.cs
- TemplatedControlDesigner.cs
- FileDetails.cs
- EmbeddedMailObject.cs
- BamlResourceDeserializer.cs
- Axis.cs
- FormParameter.cs
- CorrelationHandle.cs
- _NegotiateClient.cs
- GetPageCompletedEventArgs.cs
- InputLanguageProfileNotifySink.cs
- TextServicesManager.cs
- DirectoryRedirect.cs
- XmlFileEditor.cs
- ArrangedElementCollection.cs
- RtfControls.cs
- MsmqIntegrationChannelFactory.cs
- DbConnectionPoolGroupProviderInfo.cs
- DataTransferEventArgs.cs
- DbDataSourceEnumerator.cs
- KeyboardNavigation.cs
- CodeStatementCollection.cs
- Logging.cs
- MatrixTransform.cs
- safelinkcollection.cs
- MessagePropertyAttribute.cs
- EntitySqlQueryCacheEntry.cs
- SecurityHelper.cs
- MinimizableAttributeTypeConverter.cs
- TableCell.cs
- MimeParameters.cs
- TypedServiceOperationListItem.cs
- QuaternionAnimationUsingKeyFrames.cs
- IteratorDescriptor.cs
- InheritanceRules.cs
- DoubleAnimationUsingKeyFrames.cs