Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RSAOAEPKeyExchangeFormatter.cs
- FragmentQuery.cs
- SerializationHelper.cs
- NetworkStream.cs
- ChannelPoolSettingsElement.cs
- CompilationUtil.cs
- IListConverters.cs
- BindToObject.cs
- SoapDocumentServiceAttribute.cs
- VectorValueSerializer.cs
- Tuple.cs
- CalendarDay.cs
- ImageClickEventArgs.cs
- TableLayoutPanelDesigner.cs
- RelationshipNavigation.cs
- MetadataArtifactLoaderFile.cs
- KeyPressEvent.cs
- DelegatedStream.cs
- invalidudtexception.cs
- MailDefinitionBodyFileNameEditor.cs
- SessionEndingEventArgs.cs
- SwitchAttribute.cs
- TextContainerChangeEventArgs.cs
- AppSecurityManager.cs
- PersonalizationDictionary.cs
- MembershipPasswordException.cs
- EasingFunctionBase.cs
- FormsAuthenticationCredentials.cs
- XmlDocumentType.cs
- HwndStylusInputProvider.cs
- WindowAutomationPeer.cs
- ClientRoleProvider.cs
- MessageProtectionOrder.cs
- TextTreeUndo.cs
- SqlUtil.cs
- ReadOnlyActivityGlyph.cs
- XmlKeywords.cs
- ApplicationId.cs
- RuntimeArgumentHandle.cs
- InstanceCreationEditor.cs
- rsa.cs
- FormattedTextSymbols.cs
- ProfileSettings.cs
- UniqueIdentifierService.cs
- GroupQuery.cs
- SafeArrayTypeMismatchException.cs
- Permission.cs
- DirectoryNotFoundException.cs
- SiteMap.cs
- SymLanguageVendor.cs
- UriExt.cs
- WindowsEditBoxRange.cs
- EraserBehavior.cs
- BitmapEffectInputData.cs
- WebReferencesBuildProvider.cs
- HttpListenerPrefixCollection.cs
- FullTrustAssemblyCollection.cs
- CodeDOMProvider.cs
- TableItemStyle.cs
- NameObjectCollectionBase.cs
- xsdvalidator.cs
- EventLogPermissionAttribute.cs
- ControlAdapter.cs
- CategoryList.cs
- HtmlInputButton.cs
- CompilationRelaxations.cs
- WebZone.cs
- BasicExpandProvider.cs
- BaseHashHelper.cs
- EventManager.cs
- RequestSecurityToken.cs
- CategoryAttribute.cs
- CodeMethodReturnStatement.cs
- ProcessModelSection.cs
- Events.cs
- TreeView.cs
- TrackingSection.cs
- BackoffTimeoutHelper.cs
- ParallelTimeline.cs
- VerificationException.cs
- StaticFileHandler.cs
- TextParagraphView.cs
- ObjectListCommandCollection.cs
- WindowsContainer.cs
- VScrollProperties.cs
- OleDbDataReader.cs
- NamedPipeTransportElement.cs
- AccessibleObject.cs
- WindowsFormsHelpers.cs
- XmlName.cs
- DataGridViewImageColumn.cs
- AddressHeaderCollectionElement.cs
- XamlBuildProvider.cs
- NativeMethods.cs
- BaseTemplateParser.cs
- DetailsView.cs
- PeerNameResolver.cs
- Matrix.cs
- TrimSurroundingWhitespaceAttribute.cs
- securitycriticaldata.cs