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
- DataGridViewHitTestInfo.cs
- DupHandleConnectionReader.cs
- SimpleColumnProvider.cs
- TextOutput.cs
- QueryRewriter.cs
- ServiceBusyException.cs
- Point.cs
- RootBrowserWindowProxy.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- EnterpriseServicesHelper.cs
- HttpProcessUtility.cs
- StringKeyFrameCollection.cs
- DockingAttribute.cs
- NumericUpDown.cs
- CurrentChangedEventManager.cs
- DataGridTable.cs
- ManagementBaseObject.cs
- ZipIOExtraField.cs
- PnrpPermission.cs
- EncodingDataItem.cs
- FontCollection.cs
- IItemProperties.cs
- odbcmetadatacolumnnames.cs
- LambdaSerializationException.cs
- ScrollBar.cs
- PolygonHotSpot.cs
- XmlSerializerVersionAttribute.cs
- ByteConverter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RTLAwareMessageBox.cs
- DivideByZeroException.cs
- Table.cs
- WebBrowserProgressChangedEventHandler.cs
- LabelTarget.cs
- QilTernary.cs
- ScrollChangedEventArgs.cs
- Enumerable.cs
- SafeNativeMethods.cs
- WebServiceErrorEvent.cs
- UIElementPropertyUndoUnit.cs
- UriTemplate.cs
- ViewManager.cs
- DockPattern.cs
- RegularExpressionValidator.cs
- EventRecordWrittenEventArgs.cs
- XamlTemplateSerializer.cs
- IndexedString.cs
- _UriSyntax.cs
- TextBounds.cs
- CDSCollectionETWBCLProvider.cs
- ItemCheckedEvent.cs
- ConfigurationErrorsException.cs
- TextShapeableCharacters.cs
- MappingItemCollection.cs
- CodeIdentifier.cs
- SqlBuilder.cs
- ConnectionPoint.cs
- _ServiceNameStore.cs
- MethodRental.cs
- InvalidEnumArgumentException.cs
- SecurityHeaderTokenResolver.cs
- HwndStylusInputProvider.cs
- TargetParameterCountException.cs
- InvalidFilterCriteriaException.cs
- BeginSelectCardRequest.cs
- MessageUtil.cs
- JsonDataContract.cs
- PointKeyFrameCollection.cs
- ControlBuilderAttribute.cs
- DbParameterCollectionHelper.cs
- ChannelBinding.cs
- SqlClientPermission.cs
- PageTheme.cs
- TreeBuilder.cs
- Buffer.cs
- UrlPath.cs
- cookiecollection.cs
- RootContext.cs
- HotCommands.cs
- SoapInteropTypes.cs
- MethodBuilderInstantiation.cs
- QueueProcessor.cs
- TextTreeExtractElementUndoUnit.cs
- StylusEditingBehavior.cs
- PackageProperties.cs
- CompoundFileStorageReference.cs
- FormViewDeletedEventArgs.cs
- ModelUtilities.cs
- InputBinding.cs
- Rect.cs
- PagedDataSource.cs
- EventSourceCreationData.cs
- ContentPresenter.cs
- Exception.cs
- ToggleProviderWrapper.cs
- wmiprovider.cs
- FormView.cs
- VarRefManager.cs
- FilteredAttributeCollection.cs
- EvidenceBase.cs