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
- RowSpanVector.cs
- StrokeCollection.cs
- TraceUtility.cs
- XamlUtilities.cs
- DataGridViewMethods.cs
- RandomNumberGenerator.cs
- ListCollectionView.cs
- EventRoute.cs
- RegexStringValidator.cs
- XsltException.cs
- LinqDataSourceHelper.cs
- SafeNativeMethods.cs
- WebBrowserPermission.cs
- RelatedView.cs
- ListViewDataItem.cs
- LineServices.cs
- Preprocessor.cs
- StorageModelBuildProvider.cs
- _NTAuthentication.cs
- ListViewItem.cs
- RightsManagementEncryptionTransform.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Win32Native.cs
- SvcMapFileSerializer.cs
- DeviceContext.cs
- Msmq.cs
- CellConstantDomain.cs
- MessageSmuggler.cs
- StrokeCollectionDefaultValueFactory.cs
- CipherData.cs
- RotateTransform.cs
- CheckStoreFileValidityRequest.cs
- BaseDataList.cs
- CachedTypeface.cs
- ObjectManager.cs
- WindowsSpinner.cs
- HttpFileCollection.cs
- CachedFontFace.cs
- ChannelToken.cs
- XmlNamespaceMapping.cs
- MenuAdapter.cs
- DataListCommandEventArgs.cs
- coordinatorfactory.cs
- ServiceSecurityContext.cs
- QuaternionAnimation.cs
- VectorConverter.cs
- ValidationErrorEventArgs.cs
- EdmProperty.cs
- SchemaTableOptionalColumn.cs
- VisualStyleInformation.cs
- ParserHooks.cs
- XmlILConstructAnalyzer.cs
- ModelVisual3D.cs
- MdiWindowListStrip.cs
- IsolatedStorageException.cs
- BCryptNative.cs
- storepermissionattribute.cs
- DataViewManagerListItemTypeDescriptor.cs
- CallbackValidatorAttribute.cs
- OdbcEnvironment.cs
- CryptoConfig.cs
- Window.cs
- CodeDOMUtility.cs
- XmlBinaryWriterSession.cs
- SvcMapFileLoader.cs
- PlainXmlDeserializer.cs
- CodeSubDirectoriesCollection.cs
- TabItem.cs
- CFStream.cs
- COMException.cs
- AsyncCodeActivityContext.cs
- InkCanvasFeedbackAdorner.cs
- ArrangedElementCollection.cs
- FixedSOMTextRun.cs
- XamlBrushSerializer.cs
- IndicShape.cs
- FormsAuthentication.cs
- OperationInfo.cs
- SmtpDigestAuthenticationModule.cs
- XmlTextEncoder.cs
- TableItemProviderWrapper.cs
- WebPartDisplayMode.cs
- InputScope.cs
- EdmConstants.cs
- TableCellCollection.cs
- BulletChrome.cs
- ContourSegment.cs
- ReferenceList.cs
- HttpWebRequest.cs
- TemplateAction.cs
- ReflectionHelper.cs
- OutputCacheModule.cs
- GeneratedCodeAttribute.cs
- NavigationWindow.cs
- SqlCacheDependency.cs
- XmlReader.cs
- PrimitiveDataContract.cs
- EnumerableWrapperWeakToStrong.cs
- SByteStorage.cs
- CommunicationObjectFaultedException.cs