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
- UnSafeCharBuffer.cs
- KnownAssemblyEntry.cs
- ColumnTypeConverter.cs
- LiteralDesigner.cs
- Icon.cs
- InternalConfigRoot.cs
- MulticastDelegate.cs
- ReplyChannel.cs
- GridViewEditEventArgs.cs
- Property.cs
- DataServiceBuildProvider.cs
- EmptyEnumerator.cs
- ProtocolImporter.cs
- AuthenticationService.cs
- Normalization.cs
- DocumentViewerAutomationPeer.cs
- ProjectionCamera.cs
- _Events.cs
- SyndicationDeserializer.cs
- SafeRightsManagementPubHandle.cs
- OpenFileDialog.cs
- GPPOINT.cs
- ListBase.cs
- QueueException.cs
- KnownTypesHelper.cs
- AuthenticationSection.cs
- embossbitmapeffect.cs
- HttpDebugHandler.cs
- BitmapEffect.cs
- Material.cs
- ScriptDescriptor.cs
- DbMetaDataFactory.cs
- AxHost.cs
- RowParagraph.cs
- SerialPort.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- XmlQualifiedName.cs
- SchemaEntity.cs
- AsyncOperation.cs
- TemplateContentLoader.cs
- SystemIPInterfaceProperties.cs
- Substitution.cs
- AutomationPropertyInfo.cs
- InlineObject.cs
- LogicalTreeHelper.cs
- MergePropertyDescriptor.cs
- XamlRtfConverter.cs
- Registry.cs
- AsymmetricSignatureDeformatter.cs
- XPathDocumentIterator.cs
- SimpleType.cs
- DebugViewWriter.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DataBindingsDialog.cs
- SeekStoryboard.cs
- SecurityPermission.cs
- MimeParameterWriter.cs
- COM2PictureConverter.cs
- wmiprovider.cs
- EntityDataSourceStatementEditor.cs
- ExtensionDataReader.cs
- SerializationFieldInfo.cs
- DashStyle.cs
- DefaultMemberAttribute.cs
- ExpressionLink.cs
- DynamicMethod.cs
- LocalizableAttribute.cs
- WebPartDescription.cs
- TextEditorCopyPaste.cs
- CriticalFinalizerObject.cs
- RangeValidator.cs
- DesignTimeVisibleAttribute.cs
- BrowserCapabilitiesCompiler.cs
- GridItemCollection.cs
- Point3DIndependentAnimationStorage.cs
- WindowsRichEditRange.cs
- CryptoConfig.cs
- BinaryObjectReader.cs
- nulltextcontainer.cs
- IResourceProvider.cs
- XmlReflectionImporter.cs
- MonitorWrapper.cs
- JoinTreeSlot.cs
- SamlAuthorizationDecisionClaimResource.cs
- AlternationConverter.cs
- RegisteredArrayDeclaration.cs
- Geometry3D.cs
- ZipIOCentralDirectoryFileHeader.cs
- HandlerMappingMemo.cs
- SchemaManager.cs
- ResourceDescriptionAttribute.cs
- ButtonBase.cs
- TrustLevelCollection.cs
- TextParagraph.cs
- FormViewModeEventArgs.cs
- userdatakeys.cs
- QilUnary.cs
- CalendarDay.cs
- BaseValidator.cs
- WmlLinkAdapter.cs