Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PropertyExpression.cs
- CollectionDataContractAttribute.cs
- MethodAccessException.cs
- Msmq3PoisonHandler.cs
- Stacktrace.cs
- PropertyOverridesTypeEditor.cs
- FilterableAttribute.cs
- IPPacketInformation.cs
- WrappedIUnknown.cs
- ApplicationServiceHelper.cs
- EventSource.cs
- D3DImage.cs
- ExeConfigurationFileMap.cs
- DetailsViewPagerRow.cs
- ToolboxBitmapAttribute.cs
- TabControl.cs
- Token.cs
- BamlBinaryReader.cs
- ResourceDescriptionAttribute.cs
- DrawingContext.cs
- TdsParserSessionPool.cs
- ThicknessConverter.cs
- ExceptionHelpers.cs
- _NegotiateClient.cs
- Token.cs
- ControlIdConverter.cs
- SqlUDTStorage.cs
- ScriptResourceMapping.cs
- TextBox.cs
- SubMenuStyle.cs
- OleDbRowUpdatedEvent.cs
- DataKey.cs
- SmtpTransport.cs
- PixelFormats.cs
- Pkcs7Signer.cs
- CapabilitiesSection.cs
- Convert.cs
- Inflater.cs
- BaseCollection.cs
- ProxyHelper.cs
- SpellerStatusTable.cs
- ActiveDocumentEvent.cs
- cookieexception.cs
- GrammarBuilderDictation.cs
- safelinkcollection.cs
- HScrollProperties.cs
- XmlAtomicValue.cs
- SuppressMergeCheckAttribute.cs
- SafePEFileHandle.cs
- MultiBinding.cs
- BitmapEffectDrawingContextWalker.cs
- DependencyPropertyKey.cs
- XamlSerializer.cs
- SiteMapHierarchicalDataSourceView.cs
- InternalDispatchObject.cs
- FormsAuthenticationConfiguration.cs
- PenCursorManager.cs
- MetadataArtifactLoaderComposite.cs
- DetailsViewRow.cs
- MimeImporter.cs
- NonVisualControlAttribute.cs
- SafeArrayTypeMismatchException.cs
- RegexCharClass.cs
- DataControlButton.cs
- PersonalizationStateQuery.cs
- ServiceRouteHandler.cs
- EtwTrace.cs
- IconEditor.cs
- ConnectionManagementElement.cs
- XmlSchemaNotation.cs
- TableSectionStyle.cs
- XdrBuilder.cs
- IISUnsafeMethods.cs
- WebPartVerb.cs
- GraphicsContext.cs
- PropertyEmitterBase.cs
- DesignColumnCollection.cs
- NumberSubstitution.cs
- ToolZone.cs
- SmtpTransport.cs
- XmlBinaryWriterSession.cs
- SchemaTableColumn.cs
- GradientBrush.cs
- Size3D.cs
- _BaseOverlappedAsyncResult.cs
- PropertyRecord.cs
- SqlProvider.cs
- XamlTypeMapper.cs
- XmlSerializationReader.cs
- IntegerCollectionEditor.cs
- MouseActionValueSerializer.cs
- XmlCharacterData.cs
- BinHexEncoder.cs
- TrimSurroundingWhitespaceAttribute.cs
- FrameworkObject.cs
- PreservationFileWriter.cs
- TextDecorationCollectionConverter.cs
- Trigger.cs
- VoiceSynthesis.cs
- Vector.cs