Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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() {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlStream.cs
- ResourceExpressionBuilder.cs
- HotSpotCollection.cs
- DesigntimeLicenseContext.cs
- DetailsView.cs
- CroppedBitmap.cs
- FixUp.cs
- HyperLink.cs
- Camera.cs
- autovalidator.cs
- WebPartCatalogAddVerb.cs
- IPHostEntry.cs
- PageWrapper.cs
- CodeDelegateCreateExpression.cs
- SecurityTokenAuthenticator.cs
- SignatureConfirmations.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SignerInfo.cs
- DataServiceRequestOfT.cs
- CertificateManager.cs
- SHA384.cs
- VirtualizingPanel.cs
- ErrorActivity.cs
- RootProfilePropertySettingsCollection.cs
- SlotInfo.cs
- ByteRangeDownloader.cs
- RotationValidation.cs
- SmuggledIUnknown.cs
- storagemappingitemcollection.viewdictionary.cs
- ManagementObjectSearcher.cs
- WindowsFormsLinkLabel.cs
- Cursor.cs
- ClientFormsAuthenticationCredentials.cs
- OutputScope.cs
- MouseActionConverter.cs
- ListBindableAttribute.cs
- DocumentSequenceHighlightLayer.cs
- EntityDataSourceView.cs
- ListMarkerLine.cs
- TypographyProperties.cs
- DocumentCollection.cs
- CryptoStream.cs
- DataGridLength.cs
- HwndSubclass.cs
- HttpCapabilitiesEvaluator.cs
- ModelItemDictionaryImpl.cs
- SchemaContext.cs
- XamlTreeBuilderBamlRecordWriter.cs
- SamlConstants.cs
- DeclaredTypeValidatorAttribute.cs
- HtmlUtf8RawTextWriter.cs
- ReachSerializationUtils.cs
- ThreadBehavior.cs
- EncodingTable.cs
- HitTestDrawingContextWalker.cs
- ToolboxItemFilterAttribute.cs
- GeneratedContractType.cs
- DomainLiteralReader.cs
- WriteTimeStream.cs
- DbProviderServices.cs
- DesignerAttributeInfo.cs
- Helpers.cs
- InputElement.cs
- Animatable.cs
- X509Certificate2Collection.cs
- Component.cs
- ToolstripProfessionalRenderer.cs
- TimeSpan.cs
- PageCatalogPart.cs
- SoapFaultCodes.cs
- GeneralTransform3DTo2D.cs
- ConfigViewGenerator.cs
- Missing.cs
- RelationshipFixer.cs
- MemberMaps.cs
- TreeNode.cs
- DataGridViewBand.cs
- TextEffect.cs
- SmtpFailedRecipientException.cs
- Number.cs
- VersionPair.cs
- CardSpacePolicyElement.cs
- TableLayoutPanelResizeGlyph.cs
- WorkflowRuntimeServiceElementCollection.cs
- DataTableReaderListener.cs
- SerializationEventsCache.cs
- MetadataUtil.cs
- HotSpotCollection.cs
- IPAddress.cs
- WebPartDescriptionCollection.cs
- RemotingServices.cs
- Polygon.cs
- Site.cs
- SizeLimitedCache.cs
- ISAPIApplicationHost.cs
- ConstNode.cs
- Asn1IntegerConverter.cs
- BindingElementExtensionElement.cs
- LinqDataSourceInsertEventArgs.cs
- WorkflowElementDialogWindow.xaml.cs