Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ProfileManager.cs
- GridViewColumnHeaderAutomationPeer.cs
- Message.cs
- CssStyleCollection.cs
- WSSecurityPolicy12.cs
- RichTextBoxAutomationPeer.cs
- SemanticAnalyzer.cs
- Label.cs
- RequestedSignatureDialog.cs
- _ConnectionGroup.cs
- CounterSample.cs
- StringBlob.cs
- RichListBox.cs
- RawStylusInput.cs
- XamlTypeMapper.cs
- HebrewCalendar.cs
- TextParagraphProperties.cs
- ViewManager.cs
- MyContact.cs
- ServiceDesigner.cs
- FreezableDefaultValueFactory.cs
- QilName.cs
- SplitterPanel.cs
- ButtonPopupAdapter.cs
- TrackBarRenderer.cs
- FloaterParaClient.cs
- ResourceDictionaryCollection.cs
- PublisherMembershipCondition.cs
- JsonWriter.cs
- __Error.cs
- MailDefinition.cs
- _SslSessionsCache.cs
- PropertyTab.cs
- PositiveTimeSpanValidator.cs
- MenuDesigner.cs
- PropertyOrder.cs
- OleDbConnection.cs
- SmtpAuthenticationManager.cs
- MimeBasePart.cs
- ProxyWebPartManager.cs
- Baml2006SchemaContext.cs
- PeerCollaborationPermission.cs
- WsdlHelpGeneratorElement.cs
- BooleanExpr.cs
- uribuilder.cs
- DataSetUtil.cs
- MD5.cs
- PolicyManager.cs
- DeflateStreamAsyncResult.cs
- AdapterDictionary.cs
- Win32PrintDialog.cs
- Quad.cs
- Tuple.cs
- OwnerDrawPropertyBag.cs
- NullableLongAverageAggregationOperator.cs
- UIAgentMonitor.cs
- WindowInteractionStateTracker.cs
- KeySpline.cs
- RuntimeConfig.cs
- VisualBrush.cs
- CheckedListBox.cs
- XmlNamespaceDeclarationsAttribute.cs
- WebPartCatalogCloseVerb.cs
- sqlcontext.cs
- AssociationSet.cs
- LinearKeyFrames.cs
- WsatTransactionFormatter.cs
- UnsafeNativeMethods.cs
- ResourceCategoryAttribute.cs
- ObjectSpanRewriter.cs
- TreeNodeClickEventArgs.cs
- TextParagraph.cs
- EndEvent.cs
- SoapFault.cs
- GenericIdentity.cs
- ToolboxItem.cs
- TreeViewCancelEvent.cs
- CreateUserWizardStep.cs
- Cursor.cs
- ServiceModelStringsVersion1.cs
- ExpandSegmentCollection.cs
- ListView.cs
- dsa.cs
- HttpCookieCollection.cs
- SecurityState.cs
- XPathNodeInfoAtom.cs
- FocusChangedEventArgs.cs
- DataSourceProvider.cs
- SuppressIldasmAttribute.cs
- DbConnectionPoolCounters.cs
- OuterGlowBitmapEffect.cs
- MetadataHelper.cs
- PathData.cs
- DrawingVisual.cs
- EntityDataSourceReferenceGroup.cs
- SafeFileHandle.cs
- CodeTypeMemberCollection.cs
- DiagnosticTraceRecords.cs
- EventListener.cs
- DecimalConverter.cs