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
- DataGridViewIntLinkedList.cs
- WebException.cs
- SessionStateSection.cs
- DataGridViewRowEventArgs.cs
- DataControlFieldCell.cs
- SurrogateSelector.cs
- StatusBarAutomationPeer.cs
- WriteTimeStream.cs
- AuthorizationPolicyTypeElementCollection.cs
- TableFieldsEditor.cs
- SingleObjectCollection.cs
- DropSource.cs
- SplitterDesigner.cs
- MailWriter.cs
- CompositeScriptReferenceEventArgs.cs
- DbConnectionPoolIdentity.cs
- TextEffectCollection.cs
- WindowsNonControl.cs
- StandardCommands.cs
- PerformanceCountersElement.cs
- ArgumentException.cs
- PreloadHost.cs
- KnownBoxes.cs
- BitmapEffectDrawing.cs
- SortQuery.cs
- DataTableNewRowEvent.cs
- VisualTransition.cs
- SqlDataSourceCommandEventArgs.cs
- CompilationSection.cs
- CompiledQueryCacheKey.cs
- SmiMetaData.cs
- StrongNameUtility.cs
- SafeReversePInvokeHandle.cs
- SafeHandles.cs
- EditingMode.cs
- SessionStateSection.cs
- Int32CollectionValueSerializer.cs
- SerializationException.cs
- DateTimePicker.cs
- MSG.cs
- PartitionResolver.cs
- x509utils.cs
- FragmentNavigationEventArgs.cs
- ByteStack.cs
- DBSqlParserTableCollection.cs
- RunInstallerAttribute.cs
- LogConverter.cs
- HostedNamedPipeTransportManager.cs
- GenerateTemporaryAssemblyTask.cs
- XPathParser.cs
- SeekableReadStream.cs
- TableLayoutSettingsTypeConverter.cs
- ToolboxComponentsCreatingEventArgs.cs
- SystemUnicastIPAddressInformation.cs
- WebBrowsableAttribute.cs
- EntityClassGenerator.cs
- RectAnimationClockResource.cs
- DrawingContext.cs
- HttpProfileBase.cs
- TypographyProperties.cs
- XamlReader.cs
- SemaphoreSecurity.cs
- ToolZoneDesigner.cs
- BoundField.cs
- TreeSet.cs
- UICuesEvent.cs
- XmlTextAttribute.cs
- TextSelectionHighlightLayer.cs
- TableParagraph.cs
- DataExpression.cs
- SemaphoreSecurity.cs
- ControlPaint.cs
- QuadraticBezierSegment.cs
- XmlILTrace.cs
- LinkUtilities.cs
- LOSFormatter.cs
- SerializationStore.cs
- FixedDocumentPaginator.cs
- SerTrace.cs
- TraceHandlerErrorFormatter.cs
- ListBoxItem.cs
- CalendarKeyboardHelper.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ParallelActivityDesigner.cs
- ScriptControl.cs
- ConversionContext.cs
- XmlNamespaceMappingCollection.cs
- Int16.cs
- NavigatorOutput.cs
- SchemaConstraints.cs
- DataListCommandEventArgs.cs
- RadioButtonBaseAdapter.cs
- EventDescriptorCollection.cs
- ListBindingConverter.cs
- PtsHelper.cs
- ITextView.cs
- HitTestWithPointDrawingContextWalker.cs
- UIElement3D.cs
- DataGrid.cs
- Logging.cs