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
- AppDomainInfo.cs
- TemplateBindingExpression.cs
- StatusBarAutomationPeer.cs
- ObjectDataSource.cs
- Point3DCollectionValueSerializer.cs
- Bitmap.cs
- ConditionalAttribute.cs
- Assert.cs
- ThemeDictionaryExtension.cs
- NestedContainer.cs
- SubMenuStyle.cs
- BitFlagsGenerator.cs
- DocumentXPathNavigator.cs
- CustomValidator.cs
- Span.cs
- ThreadPool.cs
- PropertySegmentSerializer.cs
- AuthenticationConfig.cs
- MethodBuilderInstantiation.cs
- ContentFilePart.cs
- DataSourceControl.cs
- CompoundFileIOPermission.cs
- srgsitem.cs
- PropertyIDSet.cs
- SeverityFilter.cs
- CaretElement.cs
- ClientUrlResolverWrapper.cs
- pingexception.cs
- ToolStripTemplateNode.cs
- HotSpotCollection.cs
- VirtualPathProvider.cs
- DataGridCellsPanel.cs
- Compiler.cs
- LightweightCodeGenerator.cs
- IApplicationTrustManager.cs
- TreeNodeCollection.cs
- DataMemberAttribute.cs
- XmlArrayItemAttribute.cs
- ImageAttributes.cs
- FixedNode.cs
- MatrixKeyFrameCollection.cs
- MarkupCompilePass2.cs
- XPathDocument.cs
- FaultDesigner.cs
- _ListenerAsyncResult.cs
- AuthenticationManager.cs
- XPathSelectionIterator.cs
- TableLayoutPanel.cs
- StreamingContext.cs
- ContainerParaClient.cs
- PrivateFontCollection.cs
- FontWeight.cs
- __ConsoleStream.cs
- WeakEventManager.cs
- SchemaTableOptionalColumn.cs
- PrivilegeNotHeldException.cs
- WebZone.cs
- _TimerThread.cs
- SynchronizationValidator.cs
- XmlDocument.cs
- MyContact.cs
- objectresult_tresulttype.cs
- httpapplicationstate.cs
- BaseInfoTable.cs
- ResourceContainer.cs
- CanonicalFontFamilyReference.cs
- GenericPrincipal.cs
- ParallelTimeline.cs
- RegionInfo.cs
- TransformGroup.cs
- Msec.cs
- MappingModelBuildProvider.cs
- InternalTypeHelper.cs
- ArrayList.cs
- DataTableExtensions.cs
- SR.Designer.cs
- SingleTagSectionHandler.cs
- GenericIdentity.cs
- CustomCategoryAttribute.cs
- MouseEventArgs.cs
- mda.cs
- WebPartMenuStyle.cs
- PixelFormat.cs
- WebSysDisplayNameAttribute.cs
- CodeArgumentReferenceExpression.cs
- AssertValidation.cs
- Permission.cs
- EntityDataSource.cs
- StyleBamlTreeBuilder.cs
- OleAutBinder.cs
- SerialErrors.cs
- OneOfScalarConst.cs
- DataRelationPropertyDescriptor.cs
- CheckPair.cs
- RemotingService.cs
- ProcessHostMapPath.cs
- ViewStateException.cs
- ListBindingHelper.cs
- SafeHandle.cs
- UpdateProgress.cs