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
- DashStyles.cs
- Image.cs
- ImageAutomationPeer.cs
- SchemaAttDef.cs
- ValueTypeFieldReference.cs
- ScrollEventArgs.cs
- TokenBasedSet.cs
- FullTrustAssemblyCollection.cs
- ProcessHostMapPath.cs
- SequentialWorkflowHeaderFooter.cs
- Geometry3D.cs
- LinqMaximalSubtreeNominator.cs
- Regex.cs
- MeasureItemEvent.cs
- SafeProcessHandle.cs
- Selector.cs
- DataGridViewButtonCell.cs
- Rijndael.cs
- _NtlmClient.cs
- WrappedOptions.cs
- QilStrConcat.cs
- Brushes.cs
- IImplicitResourceProvider.cs
- ComplexBindingPropertiesAttribute.cs
- TableAdapterManagerNameHandler.cs
- HttpCookiesSection.cs
- HttpUnhandledOperationInvoker.cs
- Constraint.cs
- MemberExpression.cs
- MessageQueuePermissionAttribute.cs
- WebCategoryAttribute.cs
- DispatcherFrame.cs
- ListViewGroupConverter.cs
- CoreSwitches.cs
- RightNameExpirationInfoPair.cs
- LineSegment.cs
- ObjectContextServiceProvider.cs
- PageRanges.cs
- EnumUnknown.cs
- SerializationTrace.cs
- DataTablePropertyDescriptor.cs
- ColorAnimation.cs
- DataGridViewRowCancelEventArgs.cs
- BitmapEffect.cs
- TraversalRequest.cs
- PassportAuthenticationEventArgs.cs
- LineInfo.cs
- XamlDesignerSerializationManager.cs
- MetadataExporter.cs
- codemethodreferenceexpression.cs
- Configuration.cs
- RadialGradientBrush.cs
- EmptyWithCancelationCheckWorkItem.cs
- Triangle.cs
- SqlFunctionAttribute.cs
- OledbConnectionStringbuilder.cs
- XmlUTF8TextReader.cs
- TextEndOfSegment.cs
- EventLog.cs
- ElementUtil.cs
- ExceptionValidationRule.cs
- UITypeEditor.cs
- ContractBase.cs
- PersonalizationAdministration.cs
- WCFModelStrings.Designer.cs
- HttpCookie.cs
- BatchParser.cs
- CodeCatchClause.cs
- BuildResult.cs
- FixUp.cs
- ECDiffieHellman.cs
- DesignerVerb.cs
- DirectoryObjectSecurity.cs
- QueryConverter.cs
- BeginEvent.cs
- NominalTypeEliminator.cs
- KeyedHashAlgorithm.cs
- TreeIterators.cs
- validationstate.cs
- GrowingArray.cs
- filewebrequest.cs
- TraceUtils.cs
- Site.cs
- XamlRtfConverter.cs
- TimeSpanFormat.cs
- IDReferencePropertyAttribute.cs
- XmlWriterTraceListener.cs
- ExpressionLink.cs
- ArrayList.cs
- DebuggerAttributes.cs
- TextShapeableCharacters.cs
- DataGridLinkButton.cs
- FileDetails.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MultiView.cs
- PlainXmlSerializer.cs
- LicenseContext.cs
- EntityTypeEmitter.cs
- OleDbRowUpdatingEvent.cs
- CompositeTypefaceMetrics.cs