Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeValidator.cs
- EventMetadata.cs
- Region.cs
- ExecutionEngineException.cs
- ProviderUtil.cs
- RuntimeEnvironment.cs
- MimeObjectFactory.cs
- ResourceDictionary.cs
- SrgsItemList.cs
- DelegatingTypeDescriptionProvider.cs
- StringHandle.cs
- StorageTypeMapping.cs
- FilteredDataSetHelper.cs
- PixelShader.cs
- HttpCookiesSection.cs
- ConnectionInterfaceCollection.cs
- StaticExtension.cs
- WebBrowserEvent.cs
- DesignerVerbCollection.cs
- RawAppCommandInputReport.cs
- TraceContext.cs
- TransformationRules.cs
- DefaultValueAttribute.cs
- SelectionItemPattern.cs
- MemberAssignmentAnalysis.cs
- EdmScalarPropertyAttribute.cs
- TextContainer.cs
- SiteMapProvider.cs
- RectangleGeometry.cs
- CalendarSelectionChangedEventArgs.cs
- RemotingAttributes.cs
- StylusPointPropertyInfo.cs
- NavigatorInput.cs
- LambdaExpression.cs
- ApplicationId.cs
- StructuralType.cs
- HasActivatableWorkflowEvent.cs
- DateTimeConverter2.cs
- ButtonColumn.cs
- DrawingContextDrawingContextWalker.cs
- DataGridRelationshipRow.cs
- ModelFactory.cs
- MultiSelectRootGridEntry.cs
- peernodeimplementation.cs
- ReplacementText.cs
- ReadOnlyAttribute.cs
- odbcmetadatacollectionnames.cs
- _SpnDictionary.cs
- X509ChainPolicy.cs
- InkCanvasFeedbackAdorner.cs
- ObjectConverter.cs
- ObjectTypeMapping.cs
- IsolatedStorage.cs
- CompositeCollectionView.cs
- ComboBox.cs
- AuthenticationServiceManager.cs
- DataGridItemAttachedStorage.cs
- RegexCompiler.cs
- DBSqlParser.cs
- AsymmetricKeyExchangeDeformatter.cs
- TripleDESCryptoServiceProvider.cs
- ItemsPanelTemplate.cs
- PositiveTimeSpanValidator.cs
- RegisteredHiddenField.cs
- MenuAdapter.cs
- EastAsianLunisolarCalendar.cs
- XmlDataLoader.cs
- ProtectedConfigurationSection.cs
- TdsParserStaticMethods.cs
- webeventbuffer.cs
- TypeInfo.cs
- CompoundFileIOPermission.cs
- DateTimeSerializationSection.cs
- ButtonFlatAdapter.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- DataObjectMethodAttribute.cs
- DataError.cs
- ResourceFallbackManager.cs
- OleDbParameterCollection.cs
- Overlapped.cs
- SurrogateSelector.cs
- FontCollection.cs
- Predicate.cs
- BrowserCapabilitiesCompiler.cs
- ExceptionValidationRule.cs
- PerformanceCounterPermissionEntry.cs
- BoolExpression.cs
- SafeNativeMethods.cs
- StringStorage.cs
- SiteMap.cs
- SoapMessage.cs
- RelationshipEnd.cs
- StructuredProperty.cs
- UnsafeNativeMethods.cs
- SchemaComplexType.cs
- DirectoryInfo.cs
- Misc.cs
- TreeNodeBindingDepthConverter.cs
- Storyboard.cs
- MulticastOption.cs