Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / SerializableAttribute.cs / 1 / SerializableAttribute.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: SerializableAttribute
**
**
** Purpose: Used to mark a class as being serializable
**
**
============================================================*/
namespace System {
using System;
using System.Reflection;
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SerializableAttribute : Attribute
{
internal static Attribute GetCustomAttribute(Type type)
{
return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null;
}
internal static bool IsDefined(Type type)
{
return type.IsSerializable;
}
public SerializableAttribute() {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: SerializableAttribute
**
**
** Purpose: Used to mark a class as being serializable
**
**
============================================================*/
namespace System {
using System;
using System.Reflection;
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Delegate, Inherited = false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SerializableAttribute : Attribute
{
internal static Attribute GetCustomAttribute(Type type)
{
return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null;
}
internal static bool IsDefined(Type type)
{
return type.IsSerializable;
}
public SerializableAttribute() {
}
}
}
// 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
- HttpRequest.cs
- IdleTimeoutMonitor.cs
- Part.cs
- Stack.cs
- OracleTransaction.cs
- ApplicationManager.cs
- Reference.cs
- DockProviderWrapper.cs
- DbMetaDataCollectionNames.cs
- StringConcat.cs
- CheckBoxBaseAdapter.cs
- DataGridViewCellPaintingEventArgs.cs
- ECDiffieHellman.cs
- XComponentModel.cs
- BuildProviderAppliesToAttribute.cs
- TdsParser.cs
- CreateUserWizardDesigner.cs
- XmlCDATASection.cs
- IntSecurity.cs
- Timer.cs
- _ScatterGatherBuffers.cs
- EntityDesignerDataSourceView.cs
- RightsManagementInformation.cs
- WindowsTab.cs
- MemoryRecordBuffer.cs
- CustomValidator.cs
- SerializationStore.cs
- LinearGradientBrush.cs
- RayMeshGeometry3DHitTestResult.cs
- TraceSource.cs
- SchemaCreator.cs
- AmbiguousMatchException.cs
- PagesSection.cs
- ToolStripDropTargetManager.cs
- ExtensionWindow.cs
- ArglessEventHandlerProxy.cs
- CodeAttributeArgument.cs
- Pair.cs
- DataControlFieldCollection.cs
- KeyedCollection.cs
- ALinqExpressionVisitor.cs
- DetailsViewCommandEventArgs.cs
- DeobfuscatingStream.cs
- TextEffectCollection.cs
- Propagator.JoinPropagator.cs
- SessionStateContainer.cs
- MailAddress.cs
- XmlReaderSettings.cs
- SystemIPInterfaceProperties.cs
- DesignTimeParseData.cs
- NativeMethods.cs
- InternalBase.cs
- CodeNamespaceImport.cs
- Menu.cs
- PaginationProgressEventArgs.cs
- ToolStripGrip.cs
- ToolStripSplitButton.cs
- TraceData.cs
- ApplicationDirectory.cs
- InvalidPrinterException.cs
- PropertyMetadata.cs
- OleDbEnumerator.cs
- InputLanguageProfileNotifySink.cs
- Rect3DConverter.cs
- ContainerControl.cs
- MappingModelBuildProvider.cs
- XmlSequenceWriter.cs
- ImageDesigner.cs
- FunctionImportMapping.cs
- WebPartVerb.cs
- DetailsViewRowCollection.cs
- ItemsControlAutomationPeer.cs
- CodeSubDirectoriesCollection.cs
- Currency.cs
- SchemaCollectionPreprocessor.cs
- DependencyPropertyValueSerializer.cs
- EntityTypeEmitter.cs
- TextEndOfSegment.cs
- QueryableDataSourceEditData.cs
- StoreItemCollection.cs
- XmlResolver.cs
- TabControlCancelEvent.cs
- WhitespaceReader.cs
- QueryOutputWriter.cs
- DelegatedStream.cs
- MenuAdapter.cs
- MaterialCollection.cs
- PeerUnsafeNativeMethods.cs
- Cell.cs
- ThreadExceptionDialog.cs
- IsolatedStorageException.cs
- QuaternionAnimation.cs
- ReadOnlyObservableCollection.cs
- SafeThemeHandle.cs
- ScriptServiceAttribute.cs
- WebPartChrome.cs
- StaticSiteMapProvider.cs
- MeasurementDCInfo.cs
- EventWaitHandleSecurity.cs
- DetailsViewUpdateEventArgs.cs