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
- TableLayoutPanelBehavior.cs
- InternalTypeHelper.cs
- InstancePersistenceEvent.cs
- TextureBrush.cs
- RuleConditionDialog.cs
- Code.cs
- EventWaitHandleSecurity.cs
- RevocationPoint.cs
- SqlIdentifier.cs
- AttributeCollection.cs
- ScaleTransform.cs
- ObjectDataSourceEventArgs.cs
- RoleService.cs
- PlaceHolder.cs
- SemaphoreSecurity.cs
- Misc.cs
- GetKeyedHashRequest.cs
- DesignerRegionMouseEventArgs.cs
- XPathParser.cs
- ACE.cs
- HttpCacheParams.cs
- List.cs
- CriticalExceptions.cs
- ActivityBuilderHelper.cs
- WebProxyScriptElement.cs
- CodeMemberField.cs
- WebPartsSection.cs
- PhysicalOps.cs
- OutKeywords.cs
- DurableEnlistmentState.cs
- ToolBarButton.cs
- KeyedHashAlgorithm.cs
- WebPartMovingEventArgs.cs
- DataGridSortCommandEventArgs.cs
- GridItemPatternIdentifiers.cs
- LicFileLicenseProvider.cs
- OutputCacheSettings.cs
- SQLUtility.cs
- WindowsListView.cs
- WebResponse.cs
- SqlDataSourceCache.cs
- Invariant.cs
- MultiBinding.cs
- SortDescription.cs
- ConfigXmlAttribute.cs
- PublisherMembershipCondition.cs
- CollectionViewGroupInternal.cs
- TypeBuilderInstantiation.cs
- BasicCellRelation.cs
- StoragePropertyMapping.cs
- TextEditorTyping.cs
- JsonReader.cs
- WebPartConnectionsConnectVerb.cs
- DbMetaDataFactory.cs
- TaskExtensions.cs
- ToolStripDropDownButton.cs
- ReferentialConstraint.cs
- AtomPub10ServiceDocumentFormatter.cs
- ZipIOLocalFileHeader.cs
- AncillaryOps.cs
- AttributeTableBuilder.cs
- UnsafeNativeMethods.cs
- CodeConstructor.cs
- PersonalizationState.cs
- RecordConverter.cs
- SafeBitVector32.cs
- TreeNodeStyleCollection.cs
- WindowsListViewItemStartMenu.cs
- TaskExceptionHolder.cs
- KeyFrames.cs
- DisplayInformation.cs
- DesignBindingPropertyDescriptor.cs
- ParameterElement.cs
- NumericUpDown.cs
- PreparingEnlistment.cs
- ReadOnlyDictionary.cs
- BorderGapMaskConverter.cs
- DataGridCaption.cs
- Lease.cs
- ListInitExpression.cs
- CompiledIdentityConstraint.cs
- XmlSchemaDatatype.cs
- AutoFocusStyle.xaml.cs
- XmlAnyElementAttribute.cs
- SelectionListComponentEditor.cs
- RadioButton.cs
- DayRenderEvent.cs
- DesignTimeHTMLTextWriter.cs
- ContainerTracking.cs
- ImageButton.cs
- SimpleTypeResolver.cs
- ControlValuePropertyAttribute.cs
- DateBoldEvent.cs
- EntityFrameworkVersions.cs
- TextContainer.cs
- SecurityResources.cs
- SlipBehavior.cs
- RowUpdatedEventArgs.cs
- GridViewColumnCollection.cs
- DateTimeStorage.cs