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
- DBSchemaRow.cs
- EncoderFallback.cs
- XmlSchemaAnnotated.cs
- SubstitutionList.cs
- NativeMethods.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Bind.cs
- ManualWorkflowSchedulerService.cs
- ConstructorArgumentAttribute.cs
- RuleRefElement.cs
- UnmanagedMarshal.cs
- SqlWorkflowPersistenceService.cs
- XmlReturnReader.cs
- WriteableBitmap.cs
- Helpers.cs
- sqlser.cs
- BitmapMetadataBlob.cs
- DecimalKeyFrameCollection.cs
- Rotation3DAnimationUsingKeyFrames.cs
- GCHandleCookieTable.cs
- DataBinder.cs
- ZoomPercentageConverter.cs
- GridViewCellAutomationPeer.cs
- NativeMethods.cs
- WindowsIPAddress.cs
- HMACMD5.cs
- ErrorActivity.cs
- EpmCustomContentSerializer.cs
- SqlInfoMessageEvent.cs
- TypeToken.cs
- RegistryExceptionHelper.cs
- EntityDataSourceSelectingEventArgs.cs
- TextStore.cs
- safelinkcollection.cs
- SqlConnectionStringBuilder.cs
- BitmapSourceSafeMILHandle.cs
- SmiContextFactory.cs
- PageSettings.cs
- ClaimTypeElement.cs
- SemanticResolver.cs
- MenuItemBindingCollection.cs
- TreeNodeCollection.cs
- MimeTypePropertyAttribute.cs
- SecurityElement.cs
- WebHttpEndpoint.cs
- AppSettings.cs
- ThumbAutomationPeer.cs
- DownloadProgressEventArgs.cs
- WindowCollection.cs
- BigInt.cs
- FormsAuthenticationUserCollection.cs
- PropertyCollection.cs
- BaseTreeIterator.cs
- OutOfProcStateClientManager.cs
- WebPartDescriptionCollection.cs
- CompModSwitches.cs
- GeneralTransform3DCollection.cs
- ServiceModelConfiguration.cs
- TransactionFilter.cs
- SchemaImporterExtensionElementCollection.cs
- DynamicExpression.cs
- CodeDelegateCreateExpression.cs
- TextControlDesigner.cs
- CommandHelper.cs
- IntegerFacetDescriptionElement.cs
- SiteMapNodeCollection.cs
- IpcClientManager.cs
- RowParagraph.cs
- ExpressionVisitor.cs
- SHA1CryptoServiceProvider.cs
- SimpleColumnProvider.cs
- StreamGeometryContext.cs
- DataBoundControlHelper.cs
- PackageFilter.cs
- SamlSubjectStatement.cs
- DeflateInput.cs
- XNameTypeConverter.cs
- PolicyValidationException.cs
- CalendarButton.cs
- PropertyChangedEventArgs.cs
- BinaryFormatter.cs
- EdgeModeValidation.cs
- DataRow.cs
- TaskExtensions.cs
- UnsafeNativeMethods.cs
- TdsParserStaticMethods.cs
- _IPv4Address.cs
- ChildTable.cs
- _PooledStream.cs
- ISO2022Encoding.cs
- ViewCellSlot.cs
- InteropExecutor.cs
- Freezable.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- PermissionRequestEvidence.cs
- RoleService.cs
- SQLResource.cs
- LogLogRecordEnumerator.cs
- FtpCachePolicyElement.cs
- Style.cs