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
- ADMembershipUser.cs
- XPathNavigatorReader.cs
- QilList.cs
- Page.cs
- CompilationLock.cs
- SlipBehavior.cs
- SmiEventSink_Default.cs
- ContentValidator.cs
- ListSortDescriptionCollection.cs
- OleDbInfoMessageEvent.cs
- WindowsGraphics.cs
- SelectionProviderWrapper.cs
- DispatcherHookEventArgs.cs
- RenderData.cs
- Adorner.cs
- RuleInfoComparer.cs
- GridViewColumn.cs
- PeerNameRecordCollection.cs
- PointAnimation.cs
- UnconditionalPolicy.cs
- WpfSharedBamlSchemaContext.cs
- Property.cs
- StringExpressionSet.cs
- WindowsBrush.cs
- TypeConverterHelper.cs
- VectorAnimationUsingKeyFrames.cs
- ColumnBinding.cs
- MSAANativeProvider.cs
- XmlSerializerNamespaces.cs
- AssemblyAttributes.cs
- ReaderOutput.cs
- LinkArea.cs
- DataGridColumnHeadersPresenter.cs
- TypeElement.cs
- AttributeUsageAttribute.cs
- LineGeometry.cs
- GZipStream.cs
- AccessibleObject.cs
- BinHexEncoder.cs
- CalendarDesigner.cs
- MimePart.cs
- CacheChildrenQuery.cs
- DocumentXmlWriter.cs
- SignedXmlDebugLog.cs
- PageContentAsyncResult.cs
- XmlLinkedNode.cs
- StyleBamlTreeBuilder.cs
- XamlFilter.cs
- PriorityQueue.cs
- WebPartDisplayMode.cs
- CmsUtils.cs
- PropertySegmentSerializer.cs
- ValueTypeIndexerReference.cs
- ImageSourceValueSerializer.cs
- HGlobalSafeHandle.cs
- CodeStatementCollection.cs
- XNameTypeConverter.cs
- EntityParameterCollection.cs
- SystemIPv6InterfaceProperties.cs
- HealthMonitoringSection.cs
- TypeReference.cs
- VisualStateManager.cs
- Itemizer.cs
- PeerChannelFactory.cs
- BindingObserver.cs
- RegexInterpreter.cs
- CompiledRegexRunnerFactory.cs
- OracleParameterBinding.cs
- DesignerActionListCollection.cs
- WhitespaceSignificantCollectionAttribute.cs
- Qualifier.cs
- HashHelper.cs
- Label.cs
- ThreadAttributes.cs
- PageParserFilter.cs
- PostBackTrigger.cs
- DynamicRenderer.cs
- CqlQuery.cs
- ISAPIWorkerRequest.cs
- DbProviderServices.cs
- DateTimeSerializationSection.cs
- RawStylusSystemGestureInputReport.cs
- DictionaryManager.cs
- PartitionResolver.cs
- SerialReceived.cs
- XamlInt32CollectionSerializer.cs
- BindingObserver.cs
- WinEventHandler.cs
- SolidBrush.cs
- CmsUtils.cs
- listitem.cs
- EventSetter.cs
- WaitForChangedResult.cs
- RequestCachePolicyConverter.cs
- PreloadedPackages.cs
- WorkflowDataContext.cs
- AndAlso.cs
- BufferBuilder.cs
- DecodeHelper.cs
- Baml6Assembly.cs