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
- AtomContentProperty.cs
- _AutoWebProxyScriptWrapper.cs
- SvcMapFileSerializer.cs
- ShaderEffect.cs
- CanExpandCollapseAllConverter.cs
- Triplet.cs
- FillBehavior.cs
- IntSecurity.cs
- WebRequestModuleElement.cs
- Range.cs
- ProfileManager.cs
- ParameterToken.cs
- NativeMethods.cs
- SingleObjectCollection.cs
- PtsContext.cs
- TraceSwitch.cs
- DataObjectEventArgs.cs
- ReadOnlyCollectionBase.cs
- SByteConverter.cs
- PageThemeParser.cs
- ApplicationId.cs
- TableParagraph.cs
- XsdCachingReader.cs
- DataGridViewColumnStateChangedEventArgs.cs
- GroupBoxRenderer.cs
- WindowsStatusBar.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- XmlBinaryReader.cs
- PropertyConverter.cs
- UiaCoreApi.cs
- MailWebEventProvider.cs
- EntityViewContainer.cs
- PEFileReader.cs
- FigureParagraph.cs
- BitmapEffectGroup.cs
- SafeFindHandle.cs
- TypeBinaryExpression.cs
- OdbcPermission.cs
- ComponentGuaranteesAttribute.cs
- PanelContainerDesigner.cs
- WebPartMovingEventArgs.cs
- ExpressionBuilder.cs
- ComplexPropertyEntry.cs
- ServiceThrottle.cs
- ConvertersCollection.cs
- MessageDecoder.cs
- DataControlCommands.cs
- CodeTypeReference.cs
- LayoutTableCell.cs
- DataSetUtil.cs
- WebPartAuthorizationEventArgs.cs
- ButtonColumn.cs
- FixedSOMTableRow.cs
- StylusCollection.cs
- XmlNavigatorFilter.cs
- TableTextElementCollectionInternal.cs
- DocumentOrderComparer.cs
- DbParameterHelper.cs
- LogicalExpr.cs
- StringPropertyBuilder.cs
- LocalizationParserHooks.cs
- PropertyTabChangedEvent.cs
- PolyBezierSegment.cs
- ProviderCollection.cs
- Decimal.cs
- ConnectionsZone.cs
- XmlSchemaExporter.cs
- ComponentRenameEvent.cs
- DataGridViewCheckBoxColumn.cs
- EditingMode.cs
- RemotingException.cs
- SpoolingTask.cs
- XmlQuerySequence.cs
- RuntimeConfigLKG.cs
- Item.cs
- BuildProvidersCompiler.cs
- XamlDesignerSerializationManager.cs
- configsystem.cs
- StateDesigner.Helpers.cs
- CompilationSection.cs
- RuleSetCollection.cs
- ProfileService.cs
- WorkflowTransactionOptions.cs
- SQLInt64.cs
- FileLogRecordStream.cs
- PagedDataSource.cs
- GenericAuthenticationEventArgs.cs
- ReadOnlyCollectionBuilder.cs
- BoolExpr.cs
- SocketException.cs
- HttpContext.cs
- KeyTimeConverter.cs
- GlyphRunDrawing.cs
- OdbcPermission.cs
- BufferedGraphicsManager.cs
- DiscoveryProxy.cs
- QilReplaceVisitor.cs
- DataPointer.cs
- AssemblyAssociatedContentFileAttribute.cs
- Stack.cs