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
- ImageMapEventArgs.cs
- CachedFontFace.cs
- ObjectConverter.cs
- RegexNode.cs
- WsdlInspector.cs
- ProgramNode.cs
- WebPartCatalogCloseVerb.cs
- OleDbPermission.cs
- Primitive.cs
- MsmqDiagnostics.cs
- ValidatorCompatibilityHelper.cs
- SafeBuffer.cs
- CipherData.cs
- TextEffect.cs
- SimpleTableProvider.cs
- ProtocolReflector.cs
- AdornerDecorator.cs
- WebReferencesBuildProvider.cs
- HostedElements.cs
- MessageParameterAttribute.cs
- PrinterResolution.cs
- RuleElement.cs
- Formatter.cs
- AesManaged.cs
- HwndProxyElementProvider.cs
- BaseUriHelper.cs
- RNGCryptoServiceProvider.cs
- ObjectCacheHost.cs
- XmlWhitespace.cs
- WeakHashtable.cs
- CircleHotSpot.cs
- Ray3DHitTestResult.cs
- _SSPISessionCache.cs
- XmlResolver.cs
- Attributes.cs
- HtmlTableRowCollection.cs
- AssemblyName.cs
- EntitySqlQueryCacheKey.cs
- JsonFormatMapping.cs
- ToggleProviderWrapper.cs
- CustomGrammar.cs
- Point.cs
- TextEditorLists.cs
- QuerySubExprEliminator.cs
- TitleStyle.cs
- DbParameterHelper.cs
- TextSelectionHelper.cs
- SmtpCommands.cs
- TempFiles.cs
- IncomingWebRequestContext.cs
- StringReader.cs
- DataKey.cs
- WebPartConnectVerb.cs
- HttpChannelBindingToken.cs
- DataGridSortCommandEventArgs.cs
- PropertyIDSet.cs
- shaperfactory.cs
- SeekableReadStream.cs
- GridViewDeletedEventArgs.cs
- SchemaCollectionCompiler.cs
- iisPickupDirectory.cs
- WinHttpWebProxyFinder.cs
- ResourceDisplayNameAttribute.cs
- TypeDescriptionProvider.cs
- DSACryptoServiceProvider.cs
- MediaTimeline.cs
- Panel.cs
- GenericsInstances.cs
- PropertyDescriptorCollection.cs
- DbInsertCommandTree.cs
- BmpBitmapEncoder.cs
- PropertyEmitterBase.cs
- DataGridViewCellLinkedList.cs
- ListViewSelectEventArgs.cs
- IdentifierService.cs
- TextParentUndoUnit.cs
- WindowsTitleBar.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- SQLByteStorage.cs
- ToolBarOverflowPanel.cs
- DoubleLink.cs
- RawUIStateInputReport.cs
- PhonemeEventArgs.cs
- IERequestCache.cs
- WasHttpModulesInstallComponent.cs
- WebPartDisplayModeCancelEventArgs.cs
- HttpStreamFormatter.cs
- FormViewDesigner.cs
- DataControlFieldHeaderCell.cs
- SortedDictionary.cs
- XmlSchemaComplexContentRestriction.cs
- ApplicationTrust.cs
- DriveInfo.cs
- EncodingStreamWrapper.cs
- HitTestWithPointDrawingContextWalker.cs
- InvokePattern.cs
- Canonicalizers.cs
- ConfigXmlText.cs
- Converter.cs
- ZipIOExtraFieldElement.cs