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
- FixedDocumentPaginator.cs
- TreeNode.cs
- CacheOutputQuery.cs
- TdsParser.cs
- XmlChildNodes.cs
- XsltArgumentList.cs
- InputBindingCollection.cs
- AsymmetricSignatureDeformatter.cs
- ListBase.cs
- GrammarBuilderRuleRef.cs
- SoapFault.cs
- PhonemeConverter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ColumnResult.cs
- FixedBufferAttribute.cs
- ListView.cs
- DbConnectionStringCommon.cs
- ForceCopyBuildProvider.cs
- PatternMatcher.cs
- DependencyPropertyKind.cs
- DeflateStream.cs
- ExpressionLink.cs
- Point.cs
- HtmlHistory.cs
- WhitespaceSignificantCollectionAttribute.cs
- dsa.cs
- ShellProvider.cs
- OracleConnectionStringBuilder.cs
- RuntimeConfigLKG.cs
- Timeline.cs
- XPathAncestorQuery.cs
- FormViewUpdatedEventArgs.cs
- DeferredTextReference.cs
- ListViewCommandEventArgs.cs
- KeyNotFoundException.cs
- WindowsIPAddress.cs
- COM2Properties.cs
- CodeArgumentReferenceExpression.cs
- Brushes.cs
- WinInetCache.cs
- IPipelineRuntime.cs
- ViewBox.cs
- SlipBehavior.cs
- PolyLineSegment.cs
- ConstNode.cs
- KeyValueInternalCollection.cs
- MissingMemberException.cs
- XmlElementList.cs
- IProducerConsumerCollection.cs
- TextParaClient.cs
- InvalidEnumArgumentException.cs
- XmlSchemaAny.cs
- PeerCollaboration.cs
- ContextBase.cs
- InputBuffer.cs
- ContentIterators.cs
- IxmlLineInfo.cs
- tooltip.cs
- PassportAuthenticationModule.cs
- CleanUpVirtualizedItemEventArgs.cs
- Set.cs
- SpanIndex.cs
- IntSecurity.cs
- EventSetter.cs
- ColorPalette.cs
- XmlText.cs
- HttpChannelFactory.cs
- FontClient.cs
- WeakReferenceKey.cs
- XmlLangPropertyAttribute.cs
- SQLUtility.cs
- DateTimeAutomationPeer.cs
- SecurityHelper.cs
- IncrementalReadDecoders.cs
- GZipStream.cs
- PopupControlService.cs
- DataGridViewMethods.cs
- PointAnimationUsingPath.cs
- ActiveXSerializer.cs
- Selector.cs
- PropertyGroupDescription.cs
- AutomationElement.cs
- TextServicesManager.cs
- QuadraticBezierSegment.cs
- DbConnectionHelper.cs
- DropDownHolder.cs
- HitTestResult.cs
- SizeLimitedCache.cs
- PolyQuadraticBezierSegment.cs
- ApplicationActivator.cs
- PropertyTabAttribute.cs
- ADRole.cs
- ConfigXmlAttribute.cs
- DocumentEventArgs.cs
- EdmComplexTypeAttribute.cs
- XslTransform.cs
- DrawToolTipEventArgs.cs
- InputProcessorProfiles.cs
- ForeignKeyConstraint.cs
- ZoomPercentageConverter.cs