Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
// ==--==
/*============================================================
**
** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyProperty.cs
- SQLInt16.cs
- WindowVisualStateTracker.cs
- HtmlInputControl.cs
- SocketPermission.cs
- SecurityDocument.cs
- CodeExpressionRuleDeclaration.cs
- FileSystemWatcher.cs
- DataGridView.cs
- XmlValueConverter.cs
- NumberFormatter.cs
- ProjectionCamera.cs
- ChannelManager.cs
- remotingproxy.cs
- DataGridView.cs
- ModuleElement.cs
- MimeTextImporter.cs
- ParameterEditorUserControl.cs
- TypeConverterHelper.cs
- DateTimeAutomationPeer.cs
- TypedMessageConverter.cs
- ThrowHelper.cs
- ReadOnlyPermissionSet.cs
- DefaultTraceListener.cs
- oledbmetadatacolumnnames.cs
- DefaultDiscoveryService.cs
- ShaderRenderModeValidation.cs
- GetWinFXPath.cs
- Stylesheet.cs
- XsltConvert.cs
- OletxCommittableTransaction.cs
- IgnoreFileBuildProvider.cs
- EnterpriseServicesHelper.cs
- DescendentsWalker.cs
- OdbcConnectionOpen.cs
- ProjectedSlot.cs
- LoadRetryHandler.cs
- ConstructorNeedsTagAttribute.cs
- NamedElement.cs
- ExpressionLink.cs
- TrimSurroundingWhitespaceAttribute.cs
- Convert.cs
- InputBinding.cs
- SessionState.cs
- AssociationSet.cs
- EntryIndex.cs
- DataSourceUtil.cs
- Util.cs
- TransformGroup.cs
- sqlstateclientmanager.cs
- DbProviderFactories.cs
- SRDisplayNameAttribute.cs
- SubstitutionList.cs
- PointConverter.cs
- _NestedSingleAsyncResult.cs
- TokenBasedSet.cs
- Substitution.cs
- DefaultObjectMappingItemCollection.cs
- TextServicesDisplayAttribute.cs
- AnnotationElement.cs
- MtomMessageEncodingBindingElement.cs
- Route.cs
- BCLDebug.cs
- ProfileSettings.cs
- Token.cs
- PagedDataSource.cs
- FileSystemEventArgs.cs
- ScrollPatternIdentifiers.cs
- Viewport3DVisual.cs
- SerializerDescriptor.cs
- StreamInfo.cs
- OleCmdHelper.cs
- SkipStoryboardToFill.cs
- securitycriticaldataformultiplegetandset.cs
- WaitForChangedResult.cs
- ConstraintCollection.cs
- ContainerCodeDomSerializer.cs
- OperatorExpressions.cs
- WsdlBuildProvider.cs
- ToolStripArrowRenderEventArgs.cs
- InterleavedZipPartStream.cs
- PerspectiveCamera.cs
- WebZoneDesigner.cs
- Logging.cs
- CodeTypeOfExpression.cs
- CodeMemberEvent.cs
- DataBindingExpressionBuilder.cs
- BaseDataListPage.cs
- EllipticalNodeOperations.cs
- DefaultMemberAttribute.cs
- SecurityTokenProvider.cs
- LookupBindingPropertiesAttribute.cs
- precedingsibling.cs
- PrimaryKeyTypeConverter.cs
- HostingPreferredMapPath.cs
- ItemMap.cs
- ReaderContextStackData.cs
- RenderingBiasValidation.cs
- BulletChrome.cs
- SponsorHelper.cs