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
- ToolStripItemCollection.cs
- WebPartTransformerAttribute.cs
- Nullable.cs
- WsdlWriter.cs
- AppDomainUnloadedException.cs
- PageCodeDomTreeGenerator.cs
- DeviceFilterDictionary.cs
- ExpressionList.cs
- KeyProperty.cs
- DotAtomReader.cs
- SQLBoolean.cs
- Light.cs
- Aggregates.cs
- PassportAuthenticationModule.cs
- NullableFloatMinMaxAggregationOperator.cs
- LineSegment.cs
- ConfigurationFileMap.cs
- QilGenerator.cs
- SynchronizationContext.cs
- PipelineModuleStepContainer.cs
- TraceUtility.cs
- HttpModulesSection.cs
- CheckBox.cs
- ObjectQueryExecutionPlan.cs
- ProcessHostConfigUtils.cs
- UndirectedGraph.cs
- CaseExpr.cs
- CallbackValidator.cs
- Polygon.cs
- DetailsViewDeleteEventArgs.cs
- ApplicationProxyInternal.cs
- BuildProvider.cs
- String.cs
- CompressedStack.cs
- AdRotator.cs
- JsonGlobals.cs
- TypedColumnHandler.cs
- ManualResetEvent.cs
- MouseButtonEventArgs.cs
- BitmapFrameEncode.cs
- DataGridViewButtonCell.cs
- AppDomainResourcePerfCounters.cs
- RowCache.cs
- followingsibling.cs
- InfoCardArgumentException.cs
- RelationshipEntry.cs
- ProtocolsConfigurationHandler.cs
- Propagator.cs
- HelpEvent.cs
- DataGridLinkButton.cs
- TransactionFormatter.cs
- WindowsSlider.cs
- PropertyPathWorker.cs
- TriggerBase.cs
- CoTaskMemHandle.cs
- AppDomainFactory.cs
- AuthorizationRuleCollection.cs
- SmtpNtlmAuthenticationModule.cs
- ClosureBinding.cs
- WeakHashtable.cs
- IriParsingElement.cs
- CodeTypeReferenceCollection.cs
- ListViewSelectEventArgs.cs
- KeyConverter.cs
- RangeValidator.cs
- UpdatePanelTriggerCollection.cs
- QueuePathEditor.cs
- AutoScrollExpandMessageFilter.cs
- TreeNodeCollection.cs
- OrderedDictionary.cs
- ThreadPool.cs
- ServiceOperation.cs
- Model3D.cs
- HttpListenerException.cs
- CommandBinding.cs
- BaseTreeIterator.cs
- WebBrowserProgressChangedEventHandler.cs
- AnnotationResourceCollection.cs
- ConfigViewGenerator.cs
- Triplet.cs
- LoadedEvent.cs
- ObjectCloneHelper.cs
- precedingsibling.cs
- WebServiceHost.cs
- SocketInformation.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- EventLogLink.cs
- MetadataException.cs
- Int16.cs
- StorageConditionPropertyMapping.cs
- CompressedStack.cs
- PeerApplication.cs
- DataGridAddNewRow.cs
- SignatureDescription.cs
- EventWaitHandleSecurity.cs
- WSSecureConversation.cs
- SchemaDeclBase.cs
- DocumentScope.cs
- Utils.cs
- TextEndOfParagraph.cs