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
- CodeLinePragma.cs
- DataKeyArray.cs
- OdbcEnvironmentHandle.cs
- XMLSyntaxException.cs
- DataGridColumn.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- Annotation.cs
- FileIOPermission.cs
- EditorAttribute.cs
- DefinitionBase.cs
- DecoderReplacementFallback.cs
- NullableLongAverageAggregationOperator.cs
- DecimalAnimationBase.cs
- ChangeInterceptorAttribute.cs
- SrgsRuleRef.cs
- CreateUserWizard.cs
- TrackingServices.cs
- SqlMultiplexer.cs
- ColorAnimation.cs
- OpCellTreeNode.cs
- EarlyBoundInfo.cs
- RtfControls.cs
- RbTree.cs
- ErrorInfoXmlDocument.cs
- AspNetSynchronizationContext.cs
- VisualBasicImportReference.cs
- XmlCodeExporter.cs
- FormViewInsertEventArgs.cs
- LineBreakRecord.cs
- TemplateControlParser.cs
- FixedStringLookup.cs
- GlobalizationSection.cs
- XpsSerializerWriter.cs
- XmlTextReader.cs
- DragDeltaEventArgs.cs
- GridItem.cs
- CodeTypeParameterCollection.cs
- BaseCollection.cs
- Context.cs
- ArraySortHelper.cs
- DES.cs
- WebPartConnectionsCloseVerb.cs
- ViewBox.cs
- ApplicationDirectory.cs
- Comparer.cs
- TransactionFlowBindingElement.cs
- DataGridViewLayoutData.cs
- WaitHandle.cs
- IItemProperties.cs
- SourceSwitch.cs
- WebResourceAttribute.cs
- SafeLibraryHandle.cs
- LinqDataSourceValidationException.cs
- CollectionViewGroupRoot.cs
- SamlSerializer.cs
- Accessible.cs
- Parsers.cs
- DataListItem.cs
- DataViewManagerListItemTypeDescriptor.cs
- XPathCompileException.cs
- RenderData.cs
- Form.cs
- StorageConditionPropertyMapping.cs
- XmlTextReaderImplHelpers.cs
- TypeElementCollection.cs
- EFDataModelProvider.cs
- SafeSecurityHandles.cs
- ErrorTableItemStyle.cs
- ActionFrame.cs
- NamespaceExpr.cs
- LayoutEditorPart.cs
- WeakHashtable.cs
- RadioButton.cs
- GeneralTransform3DTo2D.cs
- DataBoundControlAdapter.cs
- TextParagraphCache.cs
- WorkerRequest.cs
- TextTreeNode.cs
- EncryptedReference.cs
- BindingsCollection.cs
- GroupByQueryOperator.cs
- DbConvert.cs
- ColorConverter.cs
- SiteOfOriginContainer.cs
- TextRange.cs
- DropDownList.cs
- CollaborationHelperFunctions.cs
- MailWebEventProvider.cs
- NoneExcludedImageIndexConverter.cs
- Codec.cs
- UnsignedPublishLicense.cs
- TriggerActionCollection.cs
- StringWriter.cs
- SqlError.cs
- PeerTransportSecuritySettings.cs
- ViewService.cs
- XmlSchemaComplexContent.cs
- SubstitutionDesigner.cs
- CachedCompositeFamily.cs
- __Filters.cs