Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / SerializableAttribute.cs / 1305376 / 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(RuntimeType type)
{
return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null;
}
internal static bool IsDefined(RuntimeType 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(RuntimeType type)
{
return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null;
}
internal static bool IsDefined(RuntimeType 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
- DBSqlParser.cs
- TimeoutHelper.cs
- DataGridViewHitTestInfo.cs
- TextEffect.cs
- xmlfixedPageInfo.cs
- HelloMessage11.cs
- SpellerStatusTable.cs
- KeysConverter.cs
- WindowsIdentity.cs
- XPathArrayIterator.cs
- EnumerableCollectionView.cs
- BrushConverter.cs
- arc.cs
- LocationSectionRecord.cs
- ConfigurationStrings.cs
- LinkLabel.cs
- FixedPosition.cs
- AsymmetricAlgorithm.cs
- Light.cs
- XmlSchemaSimpleTypeRestriction.cs
- UInt64Converter.cs
- HttpWriter.cs
- EntityDataSourceDesigner.cs
- DodSequenceMerge.cs
- IsolatedStorageFile.cs
- IProducerConsumerCollection.cs
- wgx_render.cs
- ActivatedMessageQueue.cs
- Flowchart.cs
- SynchronizationContext.cs
- ListComponentEditorPage.cs
- XsdCachingReader.cs
- SoapHeader.cs
- SafeRightsManagementHandle.cs
- NameObjectCollectionBase.cs
- InputLanguageCollection.cs
- CommandCollectionEditor.cs
- SQLRoleProvider.cs
- QuaternionRotation3D.cs
- FileUtil.cs
- SessionParameter.cs
- CaseExpr.cs
- StrokeCollectionDefaultValueFactory.cs
- HitTestWithPointDrawingContextWalker.cs
- CodeThrowExceptionStatement.cs
- basenumberconverter.cs
- SQLInt32Storage.cs
- XmlDocumentFragment.cs
- CriticalHandle.cs
- SurrogateEncoder.cs
- ShaderEffect.cs
- TopClause.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- ConfigurationFileMap.cs
- _NtlmClient.cs
- HtmlElementCollection.cs
- IntegerValidator.cs
- MulticastOption.cs
- DesignerActionItem.cs
- WMIGenerator.cs
- TextMessageEncoder.cs
- milexports.cs
- SqlWriter.cs
- Control.cs
- TransformerConfigurationWizardBase.cs
- ProfilePropertyNameValidator.cs
- FileInfo.cs
- FileClassifier.cs
- CodeAttachEventStatement.cs
- OrderByBuilder.cs
- FlowPosition.cs
- AxisAngleRotation3D.cs
- ApplicationDirectory.cs
- HtmlSelect.cs
- ResourceProviderFactory.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ProcessProtocolHandler.cs
- TemplateColumn.cs
- InkPresenter.cs
- Win32Native.cs
- MappingModelBuildProvider.cs
- X509UI.cs
- HuffModule.cs
- AuthorizationRuleCollection.cs
- OraclePermission.cs
- XmlFormatWriterGenerator.cs
- SqlDataAdapter.cs
- COM2Properties.cs
- RootBuilder.cs
- HwndAppCommandInputProvider.cs
- MsmqIntegrationElement.cs
- ProvidersHelper.cs
- TrackingProfileDeserializationException.cs
- ComponentSerializationService.cs
- MdImport.cs
- InplaceBitmapMetadataWriter.cs
- OLEDB_Enum.cs
- StorageEntitySetMapping.cs
- UriScheme.cs
- OleDbParameter.cs