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
- ExtensionDataReader.cs
- PropertyGridEditorPart.cs
- SqlDataSourceFilteringEventArgs.cs
- HScrollProperties.cs
- unitconverter.cs
- GraphicsState.cs
- MappingMetadataHelper.cs
- EpmCustomContentDeSerializer.cs
- RoutedPropertyChangedEventArgs.cs
- WebPartZone.cs
- UpWmlPageAdapter.cs
- BindingExpression.cs
- ConnectionStringSettings.cs
- GridItemCollection.cs
- CornerRadiusConverter.cs
- Attributes.cs
- ProcessHost.cs
- EdmScalarPropertyAttribute.cs
- OleStrCAMarshaler.cs
- XmlBufferReader.cs
- Permission.cs
- Trigger.cs
- NullableDoubleAverageAggregationOperator.cs
- InfoCardRSACryptoProvider.cs
- ReturnEventArgs.cs
- XmlIgnoreAttribute.cs
- TouchPoint.cs
- ConditionCollection.cs
- AutoGeneratedFieldProperties.cs
- XmlTextEncoder.cs
- Debug.cs
- Viewport3DVisual.cs
- NameSpaceEvent.cs
- BrowserTree.cs
- EncodingDataItem.cs
- HtmlTableCell.cs
- oledbmetadatacollectionnames.cs
- TrackingWorkflowEventArgs.cs
- NumericPagerField.cs
- XPathAncestorIterator.cs
- ActivationServices.cs
- PageBuildProvider.cs
- BindingsCollection.cs
- MimeTypeAttribute.cs
- SecondaryIndex.cs
- ProxyWebPartManager.cs
- TrustManager.cs
- SecurityHelper.cs
- UserPersonalizationStateInfo.cs
- ContentPlaceHolder.cs
- Transform.cs
- ErrorReporting.cs
- XmlSchemaIdentityConstraint.cs
- ObjectDataSourceFilteringEventArgs.cs
- Timer.cs
- InternalBufferOverflowException.cs
- LineVisual.cs
- WebConfigurationHost.cs
- ConcurrentDictionary.cs
- QilSortKey.cs
- EventDrivenDesigner.cs
- FtpWebResponse.cs
- ComponentDispatcher.cs
- SafeRightsManagementPubHandle.cs
- RtfControls.cs
- TextServicesProperty.cs
- CfgRule.cs
- GZipStream.cs
- UpdatableGenericsFeature.cs
- ConnectorRouter.cs
- BufferBuilder.cs
- XmlDataCollection.cs
- DataGridRelationshipRow.cs
- VirtualDirectoryMappingCollection.cs
- DecimalAnimation.cs
- UnSafeCharBuffer.cs
- HtmlTableRowCollection.cs
- SortQuery.cs
- LogEntryDeserializer.cs
- HttpResponse.cs
- ReflectionUtil.cs
- BinaryObjectInfo.cs
- PackagePart.cs
- ProgressBarHighlightConverter.cs
- NamespaceCollection.cs
- HashStream.cs
- ConditionalAttribute.cs
- HtmlInputReset.cs
- PermissionSetTriple.cs
- Pointer.cs
- GeneralTransform3DGroup.cs
- MetadataPropertyvalue.cs
- WebPartTransformerAttribute.cs
- CorrelationManager.cs
- AnnouncementInnerClientCD1.cs
- XmlDocumentFragment.cs
- URLMembershipCondition.cs
- Region.cs
- DbUpdateCommandTree.cs
- RewritingSimplifier.cs