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
- ExpressionContext.cs
- MailHeaderInfo.cs
- SequenceDesigner.xaml.cs
- AttributeCollection.cs
- TraceSource.cs
- FrameworkContentElement.cs
- mediaeventshelper.cs
- NativeMethods.cs
- PerformanceCounterCategory.cs
- SqlAggregateChecker.cs
- ProfilePropertySettings.cs
- Package.cs
- LazyTextWriterCreator.cs
- DataServiceConfiguration.cs
- LayoutManager.cs
- FullTextBreakpoint.cs
- GenericEnumerator.cs
- ClientScriptManagerWrapper.cs
- DefaultAutoFieldGenerator.cs
- StrokeSerializer.cs
- CodeAccessSecurityEngine.cs
- Simplifier.cs
- ScriptManager.cs
- OrderedDictionary.cs
- ExtensionElement.cs
- PrintDocument.cs
- XmlDataProvider.cs
- ConfigurationManagerHelperFactory.cs
- ServiceEndpointCollection.cs
- ClientRolePrincipal.cs
- CodeIterationStatement.cs
- RestHandler.cs
- TreeViewEvent.cs
- MessageDesigner.cs
- BitmapEffectInput.cs
- WorkerRequest.cs
- UnsafeNativeMethods.cs
- ClientBuildManagerCallback.cs
- SafeNativeMethods.cs
- _RequestCacheProtocol.cs
- baseshape.cs
- Mappings.cs
- ClientTarget.cs
- EventlogProvider.cs
- ToolStripSeparatorRenderEventArgs.cs
- ImageButton.cs
- QueuePathDialog.cs
- EventLogger.cs
- CatalogZoneBase.cs
- MissingManifestResourceException.cs
- Activity.cs
- ImageFormat.cs
- StrokeIntersection.cs
- CodeVariableReferenceExpression.cs
- AutomationPeer.cs
- Localizer.cs
- Composition.cs
- LockCookie.cs
- versioninfo.cs
- ProgressBarBrushConverter.cs
- SamlAttribute.cs
- KeyBinding.cs
- TextRangeBase.cs
- DataRelation.cs
- RIPEMD160Managed.cs
- Model3D.cs
- XmlQueryOutput.cs
- SapiRecognizer.cs
- ConsumerConnectionPoint.cs
- RelationHandler.cs
- FileUtil.cs
- UmAlQuraCalendar.cs
- BinarySecretKeyIdentifierClause.cs
- ResponseStream.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MessageDecoder.cs
- DataControlFieldCell.cs
- Lease.cs
- ItemAutomationPeer.cs
- ThicknessAnimationBase.cs
- UrlPath.cs
- MenuAdapter.cs
- DocumentPageView.cs
- ReadWriteSpinLock.cs
- ElementAtQueryOperator.cs
- ClaimSet.cs
- ServicePoint.cs
- SqlClientMetaDataCollectionNames.cs
- GridItem.cs
- DefaultBindingPropertyAttribute.cs
- AttachInfo.cs
- CommandValueSerializer.cs
- MethodImplAttribute.cs
- Matrix3DConverter.cs
- ToolStripPanelSelectionGlyph.cs
- HttpModuleAction.cs
- ConstraintConverter.cs
- StateMachineSubscription.cs
- AuthenticationServiceManager.cs
- DataGridrowEditEndingEventArgs.cs