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
- StylusPointDescription.cs
- ConvertTextFrag.cs
- StrokeNodeData.cs
- ParameterBuilder.cs
- CodeDomDecompiler.cs
- XmlSchemaAnnotation.cs
- Condition.cs
- GeneralTransform2DTo3DTo2D.cs
- VirtualPathUtility.cs
- DataGridHeaderBorder.cs
- TextSchema.cs
- NetNamedPipeSecurity.cs
- DecimalStorage.cs
- HttpGetProtocolReflector.cs
- Pool.cs
- ListBindableAttribute.cs
- ListDictionary.cs
- SynchronizationLockException.cs
- CodeArrayIndexerExpression.cs
- Soap.cs
- CodeEntryPointMethod.cs
- PanelDesigner.cs
- AppDomainProtocolHandler.cs
- Opcode.cs
- ComplexObject.cs
- ServiceDescriptions.cs
- ExternalFile.cs
- SqlUserDefinedTypeAttribute.cs
- XsdBuildProvider.cs
- GuidelineSet.cs
- CollectionDataContract.cs
- Coordinator.cs
- WindowsFormsSynchronizationContext.cs
- ImageList.cs
- EdmFunction.cs
- FragmentNavigationEventArgs.cs
- X509SecurityToken.cs
- ScriptManager.cs
- AssemblyAttributesGoHere.cs
- ToolStripStatusLabel.cs
- WebPartCatalogAddVerb.cs
- Matrix3DConverter.cs
- ServiceReference.cs
- ObjectContextServiceProvider.cs
- MetadataProperty.cs
- CookieProtection.cs
- HelpProvider.cs
- ListViewDeletedEventArgs.cs
- DataGridViewTextBoxColumn.cs
- CapabilitiesAssignment.cs
- ListChangedEventArgs.cs
- Substitution.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- InvalidEnumArgumentException.cs
- DataGridHeaderBorder.cs
- RootBrowserWindow.cs
- SecurityRuntime.cs
- METAHEADER.cs
- XmlElementAttributes.cs
- SqlDataSource.cs
- ObjectDataSourceStatusEventArgs.cs
- PackageDigitalSignature.cs
- Knowncolors.cs
- Registry.cs
- View.cs
- HttpEncoderUtility.cs
- WebRequestModuleElementCollection.cs
- DependencyPropertyValueSerializer.cs
- GlyphCollection.cs
- DATA_BLOB.cs
- SystemPens.cs
- ObjectDisposedException.cs
- WebPartConnectionsEventArgs.cs
- EventListener.cs
- ElapsedEventArgs.cs
- XmlToDatasetMap.cs
- RawUIStateInputReport.cs
- XmlChildNodes.cs
- QualifiedCellIdBoolean.cs
- OuterProxyWrapper.cs
- OrderedDictionaryStateHelper.cs
- RoleManagerEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- ListBoxAutomationPeer.cs
- CodeDOMProvider.cs
- CustomAttributeFormatException.cs
- EmptyEnumerator.cs
- Quaternion.cs
- XhtmlBasicPanelAdapter.cs
- GraphicsPath.cs
- Utilities.cs
- IFormattable.cs
- EventDescriptor.cs
- Paragraph.cs
- VectorAnimationBase.cs
- XmlSchemaObjectTable.cs
- WebPartConnectionsDisconnectVerb.cs
- HtmlInputReset.cs
- DocumentViewerBase.cs
- MatrixCamera.cs