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
- OutputCacheProfileCollection.cs
- SeverityFilter.cs
- ChannelServices.cs
- ConnectionManagementElement.cs
- NTAccount.cs
- KeyInstance.cs
- DiagnosticTrace.cs
- Encoding.cs
- XmlIterators.cs
- BitmapEffectRenderDataResource.cs
- DoubleCollectionConverter.cs
- COM2Enum.cs
- DSASignatureFormatter.cs
- GcHandle.cs
- ServiceHttpHandlerFactory.cs
- XmlUrlResolver.cs
- ClrProviderManifest.cs
- StylusShape.cs
- userdatakeys.cs
- XPathArrayIterator.cs
- TreeIterator.cs
- QueryRewriter.cs
- OAVariantLib.cs
- ImageSource.cs
- AnnotationAdorner.cs
- DataObject.cs
- XsdDuration.cs
- ObjectViewFactory.cs
- UserControlAutomationPeer.cs
- SkinBuilder.cs
- BufferAllocator.cs
- LoginCancelEventArgs.cs
- FixedTextBuilder.cs
- ConfigurationSectionGroup.cs
- Section.cs
- ListViewCancelEventArgs.cs
- TimeManager.cs
- MobileListItemCollection.cs
- SynchronizedDispatch.cs
- LayoutExceptionEventArgs.cs
- TypeResolver.cs
- XmlEncodedRawTextWriter.cs
- Baml2006ReaderContext.cs
- PageParserFilter.cs
- CompensationToken.cs
- PropertyTabChangedEvent.cs
- XPathCompileException.cs
- ExistsInCollection.cs
- DataGridDesigner.cs
- ArraySet.cs
- LongPath.cs
- PartialCachingAttribute.cs
- Section.cs
- TypeBuilderInstantiation.cs
- OrderPreservingPipeliningSpoolingTask.cs
- MultipleViewProviderWrapper.cs
- DataPager.cs
- AccessDataSourceWizardForm.cs
- AmbientEnvironment.cs
- HtmlAnchor.cs
- Int32CollectionConverter.cs
- SignatureDescription.cs
- TextRunCache.cs
- KnownBoxes.cs
- InertiaTranslationBehavior.cs
- RoutedEventHandlerInfo.cs
- CqlIdentifiers.cs
- DynamicILGenerator.cs
- ModuleBuilder.cs
- TextCompositionManager.cs
- FormView.cs
- HandleValueEditor.cs
- ActivityBindForm.cs
- ConfigXmlWhitespace.cs
- TouchPoint.cs
- MappingModelBuildProvider.cs
- ContractUtils.cs
- MonthCalendar.cs
- SafeTimerHandle.cs
- Char.cs
- Thread.cs
- BaseComponentEditor.cs
- ArrayExtension.cs
- NamespaceEmitter.cs
- DataGridViewRowsRemovedEventArgs.cs
- OutputCacheSettings.cs
- UInt16.cs
- SafeLocalMemHandle.cs
- XPathScanner.cs
- PointHitTestResult.cs
- WebBodyFormatMessageProperty.cs
- PropertyToken.cs
- DynamicILGenerator.cs
- SqlAliaser.cs
- NetNamedPipeSecurity.cs
- SqlServices.cs
- OrderedDictionaryStateHelper.cs
- SqlConnectionStringBuilder.cs
- DockProviderWrapper.cs
- RegexParser.cs