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
- FileNameEditor.cs
- PersonalizationStateInfo.cs
- DataSourceNameHandler.cs
- MergeFilterQuery.cs
- TypedReference.cs
- ScriptDescriptor.cs
- DataBindingCollection.cs
- ProxyGenerator.cs
- sqlinternaltransaction.cs
- DbBuffer.cs
- ChtmlCommandAdapter.cs
- SafeIUnknown.cs
- DecoderReplacementFallback.cs
- TagPrefixAttribute.cs
- NotificationContext.cs
- FontStretches.cs
- XmlTextReader.cs
- ChooseAction.cs
- CapabilitiesState.cs
- DesignerWidgets.cs
- RegistrationServices.cs
- Point3DValueSerializer.cs
- ListBindingConverter.cs
- PageWrapper.cs
- OrderedDictionaryStateHelper.cs
- TextServicesManager.cs
- LinqDataSourceDeleteEventArgs.cs
- ExtendedPropertyDescriptor.cs
- Walker.cs
- JsonWriter.cs
- DocumentCollection.cs
- ImageFormat.cs
- HitTestParameters3D.cs
- DataGridViewCellCancelEventArgs.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- TargetPerspective.cs
- StyleHelper.cs
- PermissionSetEnumerator.cs
- ItemContainerPattern.cs
- ImageList.cs
- XmlSchemaAnyAttribute.cs
- RoleBoolean.cs
- FixedDocument.cs
- PathSegmentCollection.cs
- CqlParserHelpers.cs
- MergablePropertyAttribute.cs
- XmlRootAttribute.cs
- Baml2006ReaderSettings.cs
- StaticSiteMapProvider.cs
- CodeGenerator.cs
- TextPenaltyModule.cs
- Stack.cs
- DataGrid.cs
- _SslState.cs
- SafeSecurityHandles.cs
- Decimal.cs
- TypeElement.cs
- XmlAttributeCache.cs
- HtmlInputFile.cs
- TdsParameterSetter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- GetMemberBinder.cs
- SizeAnimationUsingKeyFrames.cs
- Rfc4050KeyFormatter.cs
- Header.cs
- BufferBuilder.cs
- DesignTimeTemplateParser.cs
- DecoratedNameAttribute.cs
- Script.cs
- PropertyPathConverter.cs
- ProgressBarRenderer.cs
- DataStorage.cs
- GlyphsSerializer.cs
- ZipIOExtraFieldZip64Element.cs
- AnnotationComponentChooser.cs
- ListBoxItemAutomationPeer.cs
- SimpleApplicationHost.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SvcMapFileLoader.cs
- SmtpNetworkElement.cs
- DataGridViewCell.cs
- ToolTipService.cs
- PipelineModuleStepContainer.cs
- DefaultObjectSerializer.cs
- DrawingAttributeSerializer.cs
- TypedDataSourceCodeGenerator.cs
- WebPartManagerDesigner.cs
- Dictionary.cs
- DocumentScope.cs
- AssemblyCollection.cs
- UserNameSecurityToken.cs
- PartDesigner.cs
- PrintController.cs
- SettingsSection.cs
- StateValidator.cs
- DebuggerAttributes.cs
- DataSourceSelectArguments.cs
- DesignerActionVerbItem.cs
- HttpListenerException.cs
- ListViewItemCollectionEditor.cs