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
- __Error.cs
- ImageAttributes.cs
- mansign.cs
- ComplusEndpointConfigContainer.cs
- KnownTypesProvider.cs
- StringComparer.cs
- AutomationPatternInfo.cs
- TreeView.cs
- ModifierKeysValueSerializer.cs
- DataGridViewColumnTypeEditor.cs
- StringTraceRecord.cs
- Size3D.cs
- AmbientLight.cs
- loginstatus.cs
- _SslSessionsCache.cs
- SystemWebExtensionsSectionGroup.cs
- FlowDocumentScrollViewer.cs
- ToolTipAutomationPeer.cs
- HostingEnvironmentSection.cs
- DataGridViewTopRowAccessibleObject.cs
- ViewSimplifier.cs
- Marshal.cs
- XmlAttributeOverrides.cs
- PasswordRecovery.cs
- FastPropertyAccessor.cs
- WSSecureConversationDec2005.cs
- RegisteredDisposeScript.cs
- Queue.cs
- EventMap.cs
- XmlSchemaProviderAttribute.cs
- SmiEventSink_Default.cs
- WebServiceData.cs
- ConvertEvent.cs
- ExpressionBuilder.cs
- BookmarkUndoUnit.cs
- Activity.cs
- WizardStepBase.cs
- ButtonRenderer.cs
- BezierSegment.cs
- ItemsControlAutomationPeer.cs
- Thumb.cs
- BaseParser.cs
- SynchronizedDispatch.cs
- DynamicValidatorEventArgs.cs
- DesignerDataTableBase.cs
- ControlParser.cs
- UnsafeNativeMethods.cs
- XmlTextWriter.cs
- CheckPair.cs
- Control.cs
- SafeFileMappingHandle.cs
- CodeGenHelper.cs
- ElementHost.cs
- ParentQuery.cs
- RoleGroup.cs
- ImageAnimator.cs
- DocumentOrderQuery.cs
- AssemblyUtil.cs
- WorkflowDurableInstance.cs
- SplineQuaternionKeyFrame.cs
- ExpandableObjectConverter.cs
- RequestUriProcessor.cs
- DataServiceQueryException.cs
- EastAsianLunisolarCalendar.cs
- FormViewModeEventArgs.cs
- RC2CryptoServiceProvider.cs
- ResourceSetExpression.cs
- GridViewColumnHeaderAutomationPeer.cs
- HandleTable.cs
- CompareInfo.cs
- Int64Converter.cs
- RadioButtonBaseAdapter.cs
- Baml6Assembly.cs
- oledbmetadatacolumnnames.cs
- StorageMappingFragment.cs
- SqlNode.cs
- KnownTypesHelper.cs
- HighlightVisual.cs
- DesignerActionListCollection.cs
- ComEventsInfo.cs
- DurableErrorHandler.cs
- ListenerUnsafeNativeMethods.cs
- CodeTypeDeclaration.cs
- InputScope.cs
- EventHandlersStore.cs
- SinglePhaseEnlistment.cs
- VersionConverter.cs
- HttpCacheVary.cs
- SqlRetyper.cs
- GridView.cs
- Property.cs
- TouchPoint.cs
- ConfigXmlWhitespace.cs
- ThemeableAttribute.cs
- Int32KeyFrameCollection.cs
- DataRowExtensions.cs
- CultureMapper.cs
- mediaeventargs.cs
- DataIdProcessor.cs
- ComProxy.cs