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
- Comparer.cs
- TransformConverter.cs
- XPathDocumentBuilder.cs
- ProcessHostMapPath.cs
- LoaderAllocator.cs
- DbProviderManifest.cs
- ComponentGlyph.cs
- PropertyTabChangedEvent.cs
- AsyncOperation.cs
- LineVisual.cs
- Command.cs
- LocatorGroup.cs
- SocketAddress.cs
- BooleanConverter.cs
- CapabilitiesPattern.cs
- GridViewColumnCollection.cs
- XmlQueryType.cs
- PageTheme.cs
- RemotingSurrogateSelector.cs
- StyleCollectionEditor.cs
- XmlSchemaElement.cs
- MessageLogger.cs
- EntityContainerAssociationSetEnd.cs
- PropertyConverter.cs
- FrameworkElement.cs
- StandardBindingElement.cs
- SqlStatistics.cs
- DependencySource.cs
- NativeMethods.cs
- ExtendedPropertyCollection.cs
- CodeTypeConstructor.cs
- ImportCatalogPart.cs
- DependencyPropertyValueSerializer.cs
- Byte.cs
- Proxy.cs
- CodeDirectiveCollection.cs
- PenContext.cs
- Control.cs
- NamespaceQuery.cs
- MouseGestureConverter.cs
- SHA384Managed.cs
- Collection.cs
- SelectionItemPattern.cs
- ApplicationException.cs
- ReferenceEqualityComparer.cs
- Pair.cs
- DataShape.cs
- DownloadProgressEventArgs.cs
- DispatcherHooks.cs
- InstanceContextManager.cs
- XamlFigureLengthSerializer.cs
- EtwTrace.cs
- PipeStream.cs
- BorderGapMaskConverter.cs
- OuterGlowBitmapEffect.cs
- XamlClipboardData.cs
- DataColumnCollection.cs
- rsa.cs
- ImmutableObjectAttribute.cs
- InstanceLockLostException.cs
- JsonFormatWriterGenerator.cs
- DisableDpiAwarenessAttribute.cs
- AtlasWeb.Designer.cs
- XmlValidatingReaderImpl.cs
- ContentPlaceHolderDesigner.cs
- Console.cs
- ChannelDispatcher.cs
- GridViewRowPresenterBase.cs
- BamlResourceDeserializer.cs
- RootCodeDomSerializer.cs
- KeyValueInternalCollection.cs
- FileDialogPermission.cs
- BinaryMessageEncodingElement.cs
- Internal.cs
- Crypto.cs
- EngineSite.cs
- XmlDataSource.cs
- WebDescriptionAttribute.cs
- ListSourceHelper.cs
- TableLayoutColumnStyleCollection.cs
- EntityParameterCollection.cs
- RecordManager.cs
- XmlSchemaDocumentation.cs
- CriticalExceptions.cs
- SiteMapPath.cs
- DesignerAttribute.cs
- HtmlGenericControl.cs
- RegexInterpreter.cs
- TrustSection.cs
- ClipboardData.cs
- PriorityBindingExpression.cs
- ConfigurationFileMap.cs
- ListViewDeleteEventArgs.cs
- PocoEntityKeyStrategy.cs
- ItemChangedEventArgs.cs
- DiagnosticTrace.cs
- AnnotationAuthorChangedEventArgs.cs
- FloatMinMaxAggregationOperator.cs
- IisTraceListener.cs
- TextServicesCompartmentEventSink.cs