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
- PointValueSerializer.cs
 - Graphics.cs
 - KeyProperty.cs
 - TypeConverterValueSerializer.cs
 - DefaultPrintController.cs
 - DesignerActionUI.cs
 - SerializationException.cs
 - CodeDelegateInvokeExpression.cs
 - CalloutQueueItem.cs
 - BuiltInExpr.cs
 - TraceSection.cs
 - ComponentResourceKeyConverter.cs
 - NumberFormatter.cs
 - ManipulationPivot.cs
 - HashCodeCombiner.cs
 - CursorConverter.cs
 - WsatConfiguration.cs
 - CorePropertiesFilter.cs
 - IgnoreSectionHandler.cs
 - HMACSHA256.cs
 - WeakHashtable.cs
 - ConfigUtil.cs
 - HtmlButton.cs
 - PageEventArgs.cs
 - XmlObjectSerializerContext.cs
 - SendingRequestEventArgs.cs
 - SmtpNtlmAuthenticationModule.cs
 - FileSystemInfo.cs
 - Source.cs
 - MergePropertyDescriptor.cs
 - ProviderBase.cs
 - glyphs.cs
 - RoleManagerSection.cs
 - MatrixTransform3D.cs
 - ServicePointManagerElement.cs
 - TextDecorationLocationValidation.cs
 - CompositeScriptReference.cs
 - SplashScreenNativeMethods.cs
 - DataSetMappper.cs
 - itemelement.cs
 - WorkItem.cs
 - BitmapEffectRenderDataResource.cs
 - CodeDirectionExpression.cs
 - RankException.cs
 - SafeHandle.cs
 - WebConfigurationHost.cs
 - ToolbarAUtomationPeer.cs
 - ObjectSecurity.cs
 - ComboBox.cs
 - Region.cs
 - TextBoxView.cs
 - XmlHelper.cs
 - DataColumnPropertyDescriptor.cs
 - InternalBase.cs
 - MimeBasePart.cs
 - QilChoice.cs
 - DBSchemaRow.cs
 - FontDialog.cs
 - HandleCollector.cs
 - Lease.cs
 - ObjectDataSourceEventArgs.cs
 - Timer.cs
 - WindowsRegion.cs
 - SystemResourceHost.cs
 - ApplicationServicesHostFactory.cs
 - ListItemCollection.cs
 - PathFigureCollectionValueSerializer.cs
 - XmlObjectSerializerReadContext.cs
 - AdapterUtil.cs
 - Misc.cs
 - XmlWriterTraceListener.cs
 - GridItemProviderWrapper.cs
 - MetadataArtifactLoader.cs
 - MappingItemCollection.cs
 - CalculatedColumn.cs
 - PrimitiveXmlSerializers.cs
 - XmlWriterTraceListener.cs
 - XmlSchemaSequence.cs
 - ObfuscateAssemblyAttribute.cs
 - DesignerDataParameter.cs
 - ClientBuildManagerTypeDescriptionProviderBridge.cs
 - XmlSchemaParticle.cs
 - ElementsClipboardData.cs
 - ConnectionManagementElementCollection.cs
 - PagePropertiesChangingEventArgs.cs
 - RayHitTestParameters.cs
 - SetStoryboardSpeedRatio.cs
 - SineEase.cs
 - ProxyGenerator.cs
 - DummyDataSource.cs
 - TableLayoutPanelCellPosition.cs
 - ReadOnlyHierarchicalDataSource.cs
 - InputBinder.cs
 - SecurityTokenInclusionMode.cs
 - coordinatorfactory.cs
 - BlurEffect.cs
 - AccessDataSourceView.cs
 - CompilerResults.cs
 - NullExtension.cs
 - DataProtection.cs