Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationAttributes.cs / 1305376 / SerializationAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System; using System.Diagnostics.Contracts; 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")); Contract.EndContractBlock(); 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
- EllipseGeometry.cs
- ImmutableObjectAttribute.cs
- NamedPermissionSet.cs
- LockedActivityGlyph.cs
- EdmScalarPropertyAttribute.cs
- SrgsRulesCollection.cs
- GenericUriParser.cs
- ObjectStateFormatter.cs
- SoapIgnoreAttribute.cs
- AuthenticationConfig.cs
- GPPOINT.cs
- OperatingSystemVersionCheck.cs
- XPathArrayIterator.cs
- InheritanceAttribute.cs
- DialogBaseForm.cs
- TemplateBaseAction.cs
- Debug.cs
- SolidColorBrush.cs
- XmlDataSource.cs
- SafeRightsManagementHandle.cs
- TabPage.cs
- DataGridTextBoxColumn.cs
- FloatUtil.cs
- HealthMonitoringSection.cs
- DropSourceBehavior.cs
- DesignSurfaceManager.cs
- XmlWriter.cs
- ToolStripKeyboardHandlingService.cs
- Animatable.cs
- CounterCreationData.cs
- SHA512Managed.cs
- SiteIdentityPermission.cs
- BitmapEffectInputData.cs
- ContentDisposition.cs
- ResourceContainer.cs
- EditorPart.cs
- VSDExceptions.cs
- PrintDialog.cs
- CDSCollectionETWBCLProvider.cs
- MulticastNotSupportedException.cs
- DefaultTextStoreTextComposition.cs
- EntityDataSourceContainerNameConverter.cs
- ContextMarshalException.cs
- Transaction.cs
- GenerateHelper.cs
- EditingScope.cs
- XMLDiffLoader.cs
- DataColumnMappingCollection.cs
- PublisherMembershipCondition.cs
- brushes.cs
- TypeSystemProvider.cs
- AttachedAnnotation.cs
- Token.cs
- EntityModelBuildProvider.cs
- TableLayoutPanelResizeGlyph.cs
- AccessedThroughPropertyAttribute.cs
- ResourceReferenceExpressionConverter.cs
- MbpInfo.cs
- HttpModulesSection.cs
- ObjectViewQueryResultData.cs
- Parameter.cs
- CalendarDateRangeChangingEventArgs.cs
- ImportContext.cs
- PointUtil.cs
- DocumentSequenceHighlightLayer.cs
- CodeTypeReference.cs
- TableRow.cs
- wmiprovider.cs
- ToolStripLocationCancelEventArgs.cs
- DependencyObject.cs
- TypeInitializationException.cs
- BrowserTree.cs
- NetworkInformationException.cs
- QueryPageSettingsEventArgs.cs
- ClientTargetSection.cs
- connectionpool.cs
- LinkedDataMemberFieldEditor.cs
- XmlUtil.cs
- TranslateTransform3D.cs
- WebPartHeaderCloseVerb.cs
- Permission.cs
- DataGridViewComboBoxCell.cs
- Interlocked.cs
- MULTI_QI.cs
- GradientStopCollection.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ToolStripManager.cs
- AuthenticationManager.cs
- RegistrySecurity.cs
- ComponentEvent.cs
- DesignerActionMethodItem.cs
- DrawingContextFlattener.cs
- regiisutil.cs
- OdbcException.cs
- ParamArrayAttribute.cs
- XPathSingletonIterator.cs
- HitTestFilterBehavior.cs
- RtfNavigator.cs
- ImageCodecInfoPrivate.cs
- GeneralTransformCollection.cs