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
- DataGridHeaderBorder.cs
- WindowClosedEventArgs.cs
- RoleGroup.cs
- nulltextcontainer.cs
- BitmapDecoder.cs
- ReflectEventDescriptor.cs
- HtmlContainerControl.cs
- FlowDocumentPage.cs
- CollectionContainer.cs
- HtmlMeta.cs
- BrowserTree.cs
- XmlCountingReader.cs
- MemoryPressure.cs
- HwndKeyboardInputProvider.cs
- TextEditorTables.cs
- BindingList.cs
- XmlSchemaAnnotated.cs
- InkCollectionBehavior.cs
- SqlConnectionHelper.cs
- TextElement.cs
- basevalidator.cs
- ScopeElement.cs
- DiagnosticTraceSource.cs
- DataGridViewCellCancelEventArgs.cs
- DataSourceXmlSerializer.cs
- TableRowCollection.cs
- ConsumerConnectionPointCollection.cs
- LogicalChannel.cs
- ConfigsHelper.cs
- ReadOnlyHierarchicalDataSourceView.cs
- NativeRecognizer.cs
- DragDrop.cs
- StrongNameIdentityPermission.cs
- SubpageParaClient.cs
- DataGridViewButtonColumn.cs
- AsmxEndpointPickerExtension.cs
- DictionarySectionHandler.cs
- __FastResourceComparer.cs
- DnsEndPoint.cs
- StringUtil.cs
- HierarchicalDataBoundControl.cs
- WindowInteropHelper.cs
- CacheRequest.cs
- ProfileEventArgs.cs
- TextEncodedRawTextWriter.cs
- IteratorDescriptor.cs
- QueryConverter.cs
- MetafileHeader.cs
- XPathNodeList.cs
- QuarticEase.cs
- WebServiceClientProxyGenerator.cs
- XmlAnyElementAttribute.cs
- FrameworkElementAutomationPeer.cs
- DbExpressionBuilder.cs
- Point3DKeyFrameCollection.cs
- PassportAuthentication.cs
- Stroke2.cs
- DataServiceQueryOfT.cs
- KeyMatchBuilder.cs
- UnsafeNativeMethodsTablet.cs
- IndexerNameAttribute.cs
- ImageSourceConverter.cs
- EmptyQuery.cs
- GcHandle.cs
- WebBrowserUriTypeConverter.cs
- ZipPackagePart.cs
- Stylesheet.cs
- TableItemStyle.cs
- XmlConverter.cs
- SourceChangedEventArgs.cs
- LicenseManager.cs
- WindowExtensionMethods.cs
- ContextStack.cs
- SelectionChangedEventArgs.cs
- DataListItemEventArgs.cs
- BamlLocalizationDictionary.cs
- DataServiceException.cs
- Constants.cs
- TextParagraph.cs
- DataGridViewTextBoxCell.cs
- GuidelineCollection.cs
- PackagePart.cs
- TrustManagerPromptUI.cs
- MonthCalendar.cs
- ReadingWritingEntityEventArgs.cs
- NotificationContext.cs
- HttpDictionary.cs
- FormViewInsertEventArgs.cs
- Mapping.cs
- AssemblyCollection.cs
- SelectionEditor.cs
- CalloutQueueItem.cs
- RoleGroup.cs
- VSWCFServiceContractGenerator.cs
- DictionaryChange.cs
- SystemInfo.cs
- DataListItem.cs
- DiffuseMaterial.cs
- ObfuscationAttribute.cs
- PartManifestEntry.cs