Code:
/ FX-1434 / FX-1434 / 1.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
- XpsFixedDocumentReaderWriter.cs
- HandleCollector.cs
- ConfigurationValues.cs
- SchemaMapping.cs
- RowBinding.cs
- RowParagraph.cs
- DateTimeUtil.cs
- PropertyPathConverter.cs
- NotSupportedException.cs
- PersonalizableTypeEntry.cs
- ContextMenuStrip.cs
- TextTreeFixupNode.cs
- DBCommand.cs
- PermissionAttributes.cs
- AnimationTimeline.cs
- DmlSqlGenerator.cs
- BehaviorService.cs
- ExpressionHelper.cs
- UserUseLicenseDictionaryLoader.cs
- GenerateTemporaryTargetAssembly.cs
- MetadataPropertyAttribute.cs
- CustomCredentialPolicy.cs
- AvTraceDetails.cs
- OleServicesContext.cs
- RandomDelayQueuedSendsAsyncResult.cs
- StateMachineWorkflow.cs
- DataAccessor.cs
- SystemIPv4InterfaceProperties.cs
- XNameConverter.cs
- FunctionDetailsReader.cs
- LinqDataSourceUpdateEventArgs.cs
- ImageButton.cs
- AdPostCacheSubstitution.cs
- ToolStripPanelCell.cs
- RuntimeCompatibilityAttribute.cs
- PauseStoryboard.cs
- HtmlTableRowCollection.cs
- DateTimeFormatInfo.cs
- SchemaType.cs
- SystemNetworkInterface.cs
- EntitySetBase.cs
- EventLogSession.cs
- StreamWithDictionary.cs
- ReflectTypeDescriptionProvider.cs
- CredentialManagerDialog.cs
- WebPartTransformer.cs
- WebPartAddingEventArgs.cs
- GeneralTransform.cs
- TextServicesCompartmentContext.cs
- ConsumerConnectionPoint.cs
- UriScheme.cs
- WebPartConnectionsDisconnectVerb.cs
- HTTPRemotingHandler.cs
- Clock.cs
- PagesChangedEventArgs.cs
- SiteMap.cs
- MeasureData.cs
- Int32AnimationBase.cs
- Vars.cs
- PointHitTestResult.cs
- ConfigXmlSignificantWhitespace.cs
- Accessible.cs
- SchemaMerger.cs
- CellLabel.cs
- PageTheme.cs
- SerialStream.cs
- Double.cs
- DataGridViewColumn.cs
- SamlAudienceRestrictionCondition.cs
- CellLabel.cs
- HMACMD5.cs
- AnnotationAdorner.cs
- UInt32.cs
- WindowInteractionStateTracker.cs
- TransactionChannelFactory.cs
- ellipse.cs
- SamlNameIdentifierClaimResource.cs
- RemotingException.cs
- XmlSchemaComplexContentExtension.cs
- DescendentsWalkerBase.cs
- RegexRunner.cs
- InvalidCastException.cs
- DecoratedNameAttribute.cs
- TriggerActionCollection.cs
- TypefaceCollection.cs
- CodeArrayIndexerExpression.cs
- CodeCatchClause.cs
- ForeignKeyConstraint.cs
- MemberPathMap.cs
- IChannel.cs
- DataGridViewCellEventArgs.cs
- ScrollItemProviderWrapper.cs
- DbReferenceCollection.cs
- ObjectRef.cs
- AutomationProperty.cs
- ZoomingMessageFilter.cs
- ToolBarOverflowPanel.cs
- Keyboard.cs
- GB18030Encoding.cs
- ClickablePoint.cs