Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ZeroOpNode.cs
- CodeDomConfigurationHandler.cs
- OracleTransaction.cs
- ProvideValueServiceProvider.cs
- InfoCardRSACryptoProvider.cs
- FrameDimension.cs
- WebPartConnectionsDisconnectVerb.cs
- ParserContext.cs
- DataViewSettingCollection.cs
- QueryCacheManager.cs
- QueryAsyncResult.cs
- ObjectListGeneralPage.cs
- DiagnosticTraceRecords.cs
- Page.cs
- SiteMapProvider.cs
- TextElement.cs
- MetadataArtifactLoaderComposite.cs
- ClientRuntimeConfig.cs
- ExecutionContext.cs
- SiteMapHierarchicalDataSourceView.cs
- GenericTextProperties.cs
- MgmtConfigurationRecord.cs
- TextServicesLoader.cs
- SourceFilter.cs
- PageSetupDialog.cs
- XmlNodeList.cs
- HttpBrowserCapabilitiesBase.cs
- SaveFileDialog.cs
- BuildProviderAppliesToAttribute.cs
- UInt32.cs
- KeyFrames.cs
- CollaborationHelperFunctions.cs
- CaseStatementSlot.cs
- RadioButtonStandardAdapter.cs
- FixedPageProcessor.cs
- SplitterEvent.cs
- PointAnimation.cs
- OracleParameterBinding.cs
- X509Certificate2Collection.cs
- MediaEntryAttribute.cs
- ClickablePoint.cs
- TypeElement.cs
- TabPage.cs
- TextParagraphProperties.cs
- Pair.cs
- RichTextBox.cs
- RequestSecurityTokenSerializer.cs
- PropertyEmitterBase.cs
- OpCellTreeNode.cs
- ErasingStroke.cs
- SafeHandles.cs
- MapPathBasedVirtualPathProvider.cs
- ScriptDescriptor.cs
- WindowsProgressbar.cs
- PathStreamGeometryContext.cs
- TrustManager.cs
- BigInt.cs
- TokenizerHelper.cs
- WebPartConnectionsCloseVerb.cs
- InheritablePropertyChangeInfo.cs
- UnauthorizedAccessException.cs
- PassportAuthentication.cs
- PathFigureCollection.cs
- StringUtil.cs
- TypeDescriptionProvider.cs
- cryptoapiTransform.cs
- Vector3DAnimationBase.cs
- TypeNameParser.cs
- FlowLayoutSettings.cs
- WindowInteractionStateTracker.cs
- StringResourceManager.cs
- PrintDialog.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Light.cs
- ThumbButtonInfo.cs
- JavaScriptSerializer.cs
- __Filters.cs
- MsmqIntegrationBindingCollectionElement.cs
- WebServiceParameterData.cs
- BamlWriter.cs
- DataGridViewIntLinkedList.cs
- CompareInfo.cs
- ObjectCacheSettings.cs
- basecomparevalidator.cs
- EdmValidator.cs
- TraceLog.cs
- DataGridViewCellCollection.cs
- Point3DAnimation.cs
- AuthenticationModulesSection.cs
- SharedConnectionInfo.cs
- BrowserDefinitionCollection.cs
- StringUtil.cs
- AssertValidation.cs
- XmlDictionaryWriter.cs
- LinqDataView.cs
- XmlCharacterData.cs
- DashStyle.cs
- ResourceDescriptionAttribute.cs
- XmlBoundElement.cs
- BehaviorEditorPart.cs