Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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() { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProtocolsConfiguration.cs
- ListBoxItemAutomationPeer.cs
- DefaultAsyncDataDispatcher.cs
- RawStylusInputCustomDataList.cs
- RelatedImageListAttribute.cs
- CompilerLocalReference.cs
- XmlRawWriter.cs
- MatrixCamera.cs
- InterleavedZipPartStream.cs
- BaseProcessor.cs
- GlyphElement.cs
- Multiply.cs
- EndpointFilterProvider.cs
- MultipleViewPattern.cs
- VisualProxy.cs
- SqlDataSourceView.cs
- BasicCellRelation.cs
- SafeMemoryMappedViewHandle.cs
- SingleConverter.cs
- LightweightEntityWrapper.cs
- DiscoveryClientProtocol.cs
- DuplexChannelFactory.cs
- login.cs
- StorageComplexTypeMapping.cs
- WindowsToolbarAsMenu.cs
- DisableDpiAwarenessAttribute.cs
- ProgramPublisher.cs
- FocusChangedEventArgs.cs
- HttpRuntimeSection.cs
- BaseTypeViewSchema.cs
- WebPartUtil.cs
- BitmapEffectInput.cs
- NamedElement.cs
- MailAddress.cs
- SqlParameter.cs
- WindowsAuthenticationEventArgs.cs
- EventLogPermission.cs
- DrawingDrawingContext.cs
- GAC.cs
- BuildResultCache.cs
- Token.cs
- DataServiceHostFactory.cs
- RadialGradientBrush.cs
- DynamicDocumentPaginator.cs
- RequestCacheValidator.cs
- DataGridViewColumnStateChangedEventArgs.cs
- UnionExpr.cs
- OperandQuery.cs
- SpeakInfo.cs
- GenericTypeParameterBuilder.cs
- SqlNodeAnnotations.cs
- WebBrowsableAttribute.cs
- FixedSOMTableRow.cs
- TextMetrics.cs
- DataSourceHelper.cs
- StandardMenuStripVerb.cs
- Floater.cs
- XmlDomTextWriter.cs
- GatewayDefinition.cs
- XmlSchemaAnnotation.cs
- TemplateContainer.cs
- MutableAssemblyCacheEntry.cs
- BamlReader.cs
- Label.cs
- CurrentChangedEventManager.cs
- XDeferredAxisSource.cs
- SequenceRange.cs
- ReadOnlyActivityGlyph.cs
- ListView.cs
- Thumb.cs
- Mapping.cs
- ToolStripManager.cs
- ValidatorCollection.cs
- EventLogPermissionEntry.cs
- StorageRoot.cs
- ViewStateModeByIdAttribute.cs
- ValueTable.cs
- StreamWithDictionary.cs
- DefaultProxySection.cs
- DbConnectionClosed.cs
- QueryLifecycle.cs
- TextFormatterHost.cs
- DataColumnPropertyDescriptor.cs
- NativeMethodsCLR.cs
- TextBox.cs
- Calendar.cs
- ClientScriptManager.cs
- KeyedByTypeCollection.cs
- ElementNotAvailableException.cs
- SqlWebEventProvider.cs
- XmlIncludeAttribute.cs
- CounterCreationDataCollection.cs
- ObfuscationAttribute.cs
- WizardForm.cs
- HostProtectionException.cs
- Rotation3DKeyFrameCollection.cs
- ToolStripPanelDesigner.cs
- FileDialog.cs
- HashUtility.cs
- EventHandlersDesigner.cs