Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OperationCanceledException.cs
- DataFormats.cs
- PageCatalogPart.cs
- XmlSortKeyAccumulator.cs
- DataRecordInfo.cs
- StyleCollectionEditor.cs
- TableLayoutStyleCollection.cs
- CodeVariableReferenceExpression.cs
- ProxyWebPartManager.cs
- FontConverter.cs
- AspNetCacheProfileAttribute.cs
- ValueOfAction.cs
- OracleTransaction.cs
- TreeView.cs
- WebProxyScriptElement.cs
- Int32Storage.cs
- EmptyReadOnlyDictionaryInternal.cs
- RowUpdatedEventArgs.cs
- ComponentSerializationService.cs
- DeploymentSectionCache.cs
- EventSinkHelperWriter.cs
- ScrollableControl.cs
- SafeProcessHandle.cs
- XPathParser.cs
- SizeConverter.cs
- FormViewDeleteEventArgs.cs
- EncryptedData.cs
- StateMachineHelpers.cs
- ProcessModelSection.cs
- ModelUIElement3D.cs
- DragDeltaEventArgs.cs
- SqlAliasesReferenced.cs
- NetMsmqBinding.cs
- List.cs
- DataSourceConverter.cs
- FixedSOMFixedBlock.cs
- HtmlElementErrorEventArgs.cs
- AmbientProperties.cs
- XamlPointCollectionSerializer.cs
- UnicastIPAddressInformationCollection.cs
- RowSpanVector.cs
- ELinqQueryState.cs
- XPathSelfQuery.cs
- PersonalizableTypeEntry.cs
- ContextBase.cs
- ScriptControlManager.cs
- ProviderConnectionPointCollection.cs
- SystemWebCachingSectionGroup.cs
- EdmTypeAttribute.cs
- UrlMappingsModule.cs
- UserControl.cs
- Marshal.cs
- ExpressionConverter.cs
- DeploymentSectionCache.cs
- EventMappingSettingsCollection.cs
- ToolStripOverflow.cs
- SparseMemoryStream.cs
- XamlTypeMapper.cs
- ProcessProtocolHandler.cs
- CompilerGeneratedAttribute.cs
- X509Chain.cs
- DataGridRowsPresenter.cs
- CacheAxisQuery.cs
- TaskFormBase.cs
- StorageFunctionMapping.cs
- XmlRootAttribute.cs
- WebResponse.cs
- ImplicitInputBrush.cs
- CompilerScope.cs
- BuildProvidersCompiler.cs
- WorkflowPageSetupDialog.cs
- SharedPersonalizationStateInfo.cs
- EUCJPEncoding.cs
- ConfigurationPropertyCollection.cs
- FontStretchConverter.cs
- ListItem.cs
- DefaultBindingPropertyAttribute.cs
- UndoEngine.cs
- shaperfactoryquerycacheentry.cs
- CqlGenerator.cs
- XMLSyntaxException.cs
- ListBox.cs
- TextProperties.cs
- CacheModeConverter.cs
- PropertyEntry.cs
- Command.cs
- UserControlParser.cs
- ViewKeyConstraint.cs
- HttpHostedTransportConfiguration.cs
- TextAction.cs
- StringTraceRecord.cs
- TextServicesCompartmentEventSink.cs
- HtmlFormAdapter.cs
- MinimizableAttributeTypeConverter.cs
- ReferenceConverter.cs
- _TLSstream.cs
- TextContainerChangedEventArgs.cs
- SafeFileMapViewHandle.cs
- WindowsListViewItemStartMenu.cs
- XmlHelper.cs