Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- mediapermission.cs
- DiagnosticTraceSource.cs
- JavaScriptSerializer.cs
- JsonServiceDocumentSerializer.cs
- TypeRefElement.cs
- DataTableClearEvent.cs
- TypeConverterAttribute.cs
- SafeLocalMemHandle.cs
- GlyphRunDrawing.cs
- SecurityContext.cs
- XmlKeywords.cs
- OrCondition.cs
- SqlRewriteScalarSubqueries.cs
- ReachObjectContext.cs
- BaseDataListActionList.cs
- RotateTransform.cs
- FamilyMap.cs
- DataStreams.cs
- RC2CryptoServiceProvider.cs
- IntSecurity.cs
- FormDesigner.cs
- ping.cs
- MdiWindowListItemConverter.cs
- WebInvokeAttribute.cs
- CodeAccessSecurityEngine.cs
- _ProxyChain.cs
- CompensableActivity.cs
- ListViewGroupItemCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ConstantSlot.cs
- XmlQueryOutput.cs
- TileBrush.cs
- Socket.cs
- HttpServerVarsCollection.cs
- CodeDirectoryCompiler.cs
- SynchronizationFilter.cs
- Control.cs
- BeginStoryboard.cs
- Rect3DConverter.cs
- ScriptControlDescriptor.cs
- BooleanKeyFrameCollection.cs
- SystemInformation.cs
- MonthChangedEventArgs.cs
- Unit.cs
- StartFileNameEditor.cs
- SyndicationContent.cs
- AppLevelCompilationSectionCache.cs
- DataReaderContainer.cs
- WebConfigurationFileMap.cs
- HtmlInputReset.cs
- ResourceProviderFactory.cs
- EmptyStringExpandableObjectConverter.cs
- PersonalizationState.cs
- LogSwitch.cs
- PagesSection.cs
- FrameworkContextData.cs
- RuleDefinitions.cs
- SqlSupersetValidator.cs
- CapabilitiesPattern.cs
- SpellerHighlightLayer.cs
- ScriptRef.cs
- WebBrowserNavigatedEventHandler.cs
- NamedPermissionSet.cs
- Animatable.cs
- BitmapMetadataBlob.cs
- WorkflowRuntimeSection.cs
- GeneratedView.cs
- PackWebResponse.cs
- TaskFormBase.cs
- XamlRtfConverter.cs
- AppDomainProtocolHandler.cs
- WebPartVerb.cs
- AssociationSetMetadata.cs
- CodeTypeMemberCollection.cs
- InvokeBase.cs
- DataGridViewCellStateChangedEventArgs.cs
- PlanCompiler.cs
- ServicesExceptionNotHandledEventArgs.cs
- UserNameSecurityTokenAuthenticator.cs
- CrossAppDomainChannel.cs
- InvalidEnumArgumentException.cs
- PrintEvent.cs
- XmlSchemaInclude.cs
- Win32Interop.cs
- FormViewInsertedEventArgs.cs
- MouseGestureConverter.cs
- BamlBinaryReader.cs
- XmlHelper.cs
- ArgumentOutOfRangeException.cs
- jithelpers.cs
- Psha1DerivedKeyGenerator.cs
- dataprotectionpermission.cs
- GridViewCommandEventArgs.cs
- WebConfigManager.cs
- TableHeaderCell.cs
- DrawingState.cs
- IIS7UserPrincipal.cs
- ListDictionary.cs
- SQLBinary.cs
- XmlWellformedWriter.cs