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
- Path.cs
- BulletedList.cs
- MouseButton.cs
- AutoCompleteStringCollection.cs
- TextContainer.cs
- TextCompositionManager.cs
- TypeLoadException.cs
- SrgsDocumentParser.cs
- ValidatorCompatibilityHelper.cs
- SqlCacheDependencyDatabase.cs
- EntityDesignerDataSourceView.cs
- ProcessProtocolHandler.cs
- QuadraticBezierSegment.cs
- XmlSchemaObjectCollection.cs
- DataGridViewRowPrePaintEventArgs.cs
- newinstructionaction.cs
- SqlAliaser.cs
- RenderContext.cs
- SevenBitStream.cs
- EntityParameter.cs
- VarInfo.cs
- BaseTreeIterator.cs
- XPathDescendantIterator.cs
- FormConverter.cs
- VideoDrawing.cs
- SortedList.cs
- CryptoStream.cs
- CompilerError.cs
- ControlsConfig.cs
- TextTreeText.cs
- PropertyCollection.cs
- RepeaterItemEventArgs.cs
- ToolStripDropDownMenu.cs
- BrowserDefinition.cs
- XPathChildIterator.cs
- BitmapImage.cs
- RankException.cs
- DataGridViewBand.cs
- UnionCqlBlock.cs
- ViewStateChangedEventArgs.cs
- SQLSingle.cs
- PrintDialog.cs
- PrintDialogDesigner.cs
- TdsValueSetter.cs
- LiteralTextParser.cs
- Parallel.cs
- RSACryptoServiceProvider.cs
- ViewCellRelation.cs
- ProxyHelper.cs
- ProtectedConfigurationSection.cs
- FragmentQueryKB.cs
- SamlNameIdentifierClaimResource.cs
- OdbcErrorCollection.cs
- DbDataSourceEnumerator.cs
- RedBlackList.cs
- RotateTransform.cs
- NextPreviousPagerField.cs
- _NegotiateClient.cs
- DesignerActionGlyph.cs
- BuilderInfo.cs
- Point3DAnimation.cs
- PixelFormats.cs
- ElementUtil.cs
- ComponentChangedEvent.cs
- FormViewPageEventArgs.cs
- parserscommon.cs
- Int64KeyFrameCollection.cs
- DataTableReaderListener.cs
- DataSetViewSchema.cs
- Timer.cs
- Empty.cs
- XslCompiledTransform.cs
- BinaryNode.cs
- SafeProcessHandle.cs
- DispatcherHookEventArgs.cs
- DBSchemaTable.cs
- SiteMapNodeCollection.cs
- KeyConverter.cs
- WebPartEditorOkVerb.cs
- HuffmanTree.cs
- DataServiceClientException.cs
- Directory.cs
- CodeTypeParameterCollection.cs
- DataColumn.cs
- ToggleProviderWrapper.cs
- WindowCollection.cs
- RootBrowserWindowProxy.cs
- ColumnBinding.cs
- CodeAssignStatement.cs
- NameNode.cs
- StorageRoot.cs
- CodeVariableDeclarationStatement.cs
- JsonWriter.cs
- RectangleGeometry.cs
- Models.cs
- Attribute.cs
- Brush.cs
- PingReply.cs
- QueryExpr.cs
- Image.cs