Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / SerializableAttribute.cs / 1305376 / 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(RuntimeType type) { return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null; } internal static bool IsDefined(RuntimeType 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
- MultipartContentParser.cs
- ZoneMembershipCondition.cs
- TableStyle.cs
- IncrementalReadDecoders.cs
- DocumentPageView.cs
- TextRangeEditLists.cs
- DbParameterCollectionHelper.cs
- SiteMapSection.cs
- BooleanProjectedSlot.cs
- ColorIndependentAnimationStorage.cs
- SqlOuterApplyReducer.cs
- EntityClassGenerator.cs
- IndexedString.cs
- WebConfigManager.cs
- TraceHandlerErrorFormatter.cs
- MethodBody.cs
- InvalidDataContractException.cs
- UnmanagedMarshal.cs
- DataBinding.cs
- TreeView.cs
- wmiprovider.cs
- ColorAnimationBase.cs
- TileModeValidation.cs
- OuterGlowBitmapEffect.cs
- IdnMapping.cs
- XmlTextReaderImplHelpers.cs
- TextServicesPropertyRanges.cs
- DataListItemCollection.cs
- QueryMath.cs
- SiteMapPath.cs
- Viewport3DVisual.cs
- CompilerInfo.cs
- Helper.cs
- BoundPropertyEntry.cs
- XslAstAnalyzer.cs
- ServiceMetadataExtension.cs
- BlockUIContainer.cs
- ListViewItemCollectionEditor.cs
- ExtractedStateEntry.cs
- HierarchicalDataBoundControlAdapter.cs
- ConstructorBuilder.cs
- PublisherMembershipCondition.cs
- SqlDataSource.cs
- ValidationEventArgs.cs
- InputLanguageEventArgs.cs
- PeerNearMe.cs
- InternalRelationshipCollection.cs
- NodeFunctions.cs
- XmlNotation.cs
- HostedTcpTransportManager.cs
- SoapClientMessage.cs
- SimpleColumnProvider.cs
- GetParentChain.cs
- XmlWhitespace.cs
- DaylightTime.cs
- ArgumentValidation.cs
- AssemblyInfo.cs
- ListViewHitTestInfo.cs
- DocumentApplicationJournalEntry.cs
- ChangeNode.cs
- X509Certificate.cs
- DesignerLoader.cs
- UDPClient.cs
- FormatException.cs
- ControlCollection.cs
- TextCompositionEventArgs.cs
- TCPListener.cs
- GeneralTransformCollection.cs
- FileDialog_Vista.cs
- MenuItem.cs
- AutomationAttributeInfo.cs
- ContentType.cs
- SafeHandle.cs
- RegexRunner.cs
- WaitHandle.cs
- InstanceHandle.cs
- ACL.cs
- InheritanceContextChangedEventManager.cs
- ResourceProviderFactory.cs
- AppDomainFactory.cs
- ControlCollection.cs
- ThreadStaticAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- ImportContext.cs
- MSG.cs
- AuthorizationSection.cs
- unsafeIndexingFilterStream.cs
- KnownTypesHelper.cs
- LocalizableAttribute.cs
- CompensatableTransactionScopeActivityDesigner.cs
- TraceSwitch.cs
- Stream.cs
- Helpers.cs
- DataContractJsonSerializer.cs
- MimeParameterWriter.cs
- cache.cs
- Form.cs
- dsa.cs
- Interfaces.cs
- WebPartRestoreVerb.cs