Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / SerializableAttribute.cs / 1305376 / 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(RuntimeType type) { return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null; } internal static bool IsDefined(RuntimeType 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(RuntimeType type) { return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null; } internal static bool IsDefined(RuntimeType 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
- SafeNativeMethods.cs
- WebPartDisplayModeCancelEventArgs.cs
- MultipartContentParser.cs
- DataServiceQuery.cs
- ToolStripContainer.cs
- EncryptedKey.cs
- Schema.cs
- CookieHandler.cs
- SerializationStore.cs
- TokenBasedSet.cs
- OdbcStatementHandle.cs
- ListControl.cs
- InstanceCreationEditor.cs
- DataRelation.cs
- PageSetupDialog.cs
- FormViewUpdateEventArgs.cs
- StackOverflowException.cs
- Environment.cs
- WbmpConverter.cs
- WSUtilitySpecificationVersion.cs
- ApplicationInterop.cs
- serverconfig.cs
- LayoutDump.cs
- QualificationDataItem.cs
- ExpressionVisitor.cs
- RepeatBehaviorConverter.cs
- BrowserCapabilitiesFactory35.cs
- DynamicObject.cs
- ContentDisposition.cs
- LineServicesCallbacks.cs
- ConfigurationValue.cs
- DigitShape.cs
- odbcmetadatacolumnnames.cs
- XmlHierarchicalEnumerable.cs
- PersistChildrenAttribute.cs
- NavigateUrlConverter.cs
- SpAudioStreamWrapper.cs
- ConfigurationSettings.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- AuthenticationSection.cs
- LoadItemsEventArgs.cs
- Monitor.cs
- Hash.cs
- ViewBase.cs
- SizeConverter.cs
- StretchValidation.cs
- ActivityInstanceMap.cs
- XPathAxisIterator.cs
- DataBoundLiteralControl.cs
- WebConfigurationManager.cs
- XmlSchemaComplexContentRestriction.cs
- RuleSettingsCollection.cs
- ProfileProvider.cs
- XPathDescendantIterator.cs
- UriTemplateLiteralQueryValue.cs
- MessagePropertyVariants.cs
- OdbcParameter.cs
- ExceptionAggregator.cs
- UrlMappingsModule.cs
- DoubleAnimationBase.cs
- _UncName.cs
- DataGridBoolColumn.cs
- PersonalizationEntry.cs
- ZoomingMessageFilter.cs
- Membership.cs
- DataObject.cs
- TextSearch.cs
- DesignSurface.cs
- FileDialog_Vista_Interop.cs
- ResXBuildProvider.cs
- OdbcException.cs
- EntityCollection.cs
- WindowsListViewSubItem.cs
- DataGridColumnHeadersPresenter.cs
- IISMapPath.cs
- DockingAttribute.cs
- RangeValuePattern.cs
- GridViewCancelEditEventArgs.cs
- SqlDataSourceTableQuery.cs
- Win32Exception.cs
- CryptoApi.cs
- DispatcherFrame.cs
- DependencyObjectProvider.cs
- PreservationFileReader.cs
- AssemblyUtil.cs
- CmsInterop.cs
- QueryStringHandler.cs
- FixedHyperLink.cs
- ImageField.cs
- TextSpan.cs
- WebPartMenu.cs
- PasswordBoxAutomationPeer.cs
- WindowClosedEventArgs.cs
- EventLogEntry.cs
- HtmlTernaryTree.cs
- FileDetails.cs
- PersonalizationProvider.cs
- TextTreeTextNode.cs
- WebPartRestoreVerb.cs
- ConnectionsZone.cs