Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SystemIPGlobalStatistics.cs
- TrustSection.cs
- TextRangeBase.cs
- TextTreeInsertUndoUnit.cs
- IndexOutOfRangeException.cs
- PropertyChangedEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- HttpRawResponse.cs
- AddingNewEventArgs.cs
- dsa.cs
- WSSecureConversationDec2005.cs
- AutomationProperties.cs
- ServiceElementCollection.cs
- CatalogZone.cs
- PhysicalAddress.cs
- RouteItem.cs
- AttachmentCollection.cs
- CodeTypeMemberCollection.cs
- ContractCodeDomInfo.cs
- MaterialGroup.cs
- AnnotationHelper.cs
- HiddenFieldPageStatePersister.cs
- RegionData.cs
- AmbiguousMatchException.cs
- KeyToListMap.cs
- ReaderOutput.cs
- ContextProperty.cs
- SecurityUtils.cs
- TextBoxBase.cs
- WindowsGraphics2.cs
- HtmlButton.cs
- ConfigurationPropertyAttribute.cs
- BaseTemplateParser.cs
- ServiceDebugBehavior.cs
- _SafeNetHandles.cs
- SizeConverter.cs
- _RequestCacheProtocol.cs
- ImageBrush.cs
- PieceDirectory.cs
- Property.cs
- SemaphoreSecurity.cs
- FieldDescriptor.cs
- Utility.cs
- SessionParameter.cs
- EncryptedPackage.cs
- ParserExtension.cs
- NetNamedPipeBindingElement.cs
- MemberMaps.cs
- XmlMembersMapping.cs
- OrderedDictionary.cs
- FillBehavior.cs
- ImageResources.Designer.cs
- BufferedMessageWriter.cs
- DebuggerAttributes.cs
- BatchParser.cs
- ManagementOptions.cs
- Codec.cs
- XPathDocument.cs
- XmlDataDocument.cs
- ProcessingInstructionAction.cs
- SelectionPatternIdentifiers.cs
- GroupLabel.cs
- CodeDomDecompiler.cs
- TextDecorations.cs
- EntityContainerEntitySetDefiningQuery.cs
- SubclassTypeValidator.cs
- XmlSerializationGeneratedCode.cs
- PersonalizationState.cs
- KeyGestureValueSerializer.cs
- SqlFileStream.cs
- FixedSOMLineCollection.cs
- _OverlappedAsyncResult.cs
- PeerNearMe.cs
- basemetadatamappingvisitor.cs
- SafeLibraryHandle.cs
- DependencyObjectPropertyDescriptor.cs
- RangeValidator.cs
- SrgsSubset.cs
- HttpListenerResponse.cs
- XamlReaderHelper.cs
- CopyEncoder.cs
- DiscoveryServerProtocol.cs
- DataSetMappper.cs
- DataGridState.cs
- processwaithandle.cs
- IndentTextWriter.cs
- MD5.cs
- EastAsianLunisolarCalendar.cs
- SiteMapNodeItem.cs
- TextProviderWrapper.cs
- DateTimeUtil.cs
- UnmanagedMemoryStreamWrapper.cs
- NamespaceMapping.cs
- TextEndOfSegment.cs
- SizeFConverter.cs
- ClientBuildManager.cs
- ProjectionQueryOptionExpression.cs
- XmlWrappingReader.cs
- Vector3DAnimationBase.cs
- WaitHandle.cs