Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- ImageAttributes.cs
- HtmlInputPassword.cs
- IncrementalHitTester.cs
- ManifestBasedResourceGroveler.cs
- DLinqColumnProvider.cs
- DirectoryRootQuery.cs
- TableLayoutCellPaintEventArgs.cs
- DbConnectionPoolOptions.cs
- OutputCacheSettingsSection.cs
- ButtonStandardAdapter.cs
- RoutedUICommand.cs
- ErrorTolerantObjectWriter.cs
- ActivityWithResultWrapper.cs
- StateWorkerRequest.cs
- DbParameterCollectionHelper.cs
- ToolStripHighContrastRenderer.cs
- AnnotationAuthorChangedEventArgs.cs
- CustomWebEventKey.cs
- URLString.cs
- SizeFConverter.cs
- Baml2006Reader.cs
- OutKeywords.cs
- OrderByLifter.cs
- ProviderBase.cs
- HttpRequestTraceRecord.cs
- IndentedWriter.cs
- ActivityWithResultConverter.cs
- CodeSnippetExpression.cs
- EncryptedPackage.cs
- XmlSerializerAssemblyAttribute.cs
- XmlAttributeAttribute.cs
- WebPartRestoreVerb.cs
- ServiceEndpoint.cs
- EntitySetBaseCollection.cs
- IdleTimeoutMonitor.cs
- Assert.cs
- CompilationRelaxations.cs
- XmlValidatingReader.cs
- ITreeGenerator.cs
- Stack.cs
- HTTPNotFoundHandler.cs
- ProfileWorkflowElement.cs
- RoleBoolean.cs
- JournalEntryListConverter.cs
- AppendHelper.cs
- Sorting.cs
- AccessDataSourceView.cs
- UnmanagedHandle.cs
- BooleanConverter.cs
- If.cs
- IgnoreSection.cs
- ObjectItemNoOpAssemblyLoader.cs
- X509CertificateCollection.cs
- ProtectedConfigurationProviderCollection.cs
- IEnumerable.cs
- ConstraintCollection.cs
- UIElement3D.cs
- CodePrimitiveExpression.cs
- MsmqInputChannelBase.cs
- WebSysDefaultValueAttribute.cs
- listitem.cs
- ToolStripGrip.cs
- DeviceContexts.cs
- Hashtable.cs
- PackagingUtilities.cs
- StylusPointProperties.cs
- NavigationWindow.cs
- MenuTracker.cs
- ListItemParagraph.cs
- ISCIIEncoding.cs
- OrthographicCamera.cs
- TypedDataSetSchemaImporterExtension.cs
- MouseActionValueSerializer.cs
- GridViewColumnHeaderAutomationPeer.cs
- RegexGroupCollection.cs
- AnimatedTypeHelpers.cs
- ScriptDescriptor.cs
- InlinedAggregationOperatorEnumerator.cs
- RectangleF.cs
- SmtpNtlmAuthenticationModule.cs
- CommandManager.cs
- TextSelectionHelper.cs
- SafeEventLogReadHandle.cs
- SmiRecordBuffer.cs
- HtmlGenericControl.cs
- DataSourceProvider.cs
- TraceListeners.cs
- PermissionSet.cs
- SamlAuthenticationStatement.cs
- TextDecoration.cs
- DispatchChannelSink.cs
- Transform3D.cs
- ContractReference.cs
- InputEventArgs.cs
- ColorConvertedBitmapExtension.cs
- EntityDataSourceStatementEditor.cs
- WmlLabelAdapter.cs
- MenuRenderer.cs
- SimpleExpression.cs
- Typeface.cs