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
- SymLanguageVendor.cs
- XmlCharacterData.cs
- DtdParser.cs
- OdbcUtils.cs
- StringDictionary.cs
- TextDecorationCollection.cs
- XmlReader.cs
- ping.cs
- ResourceType.cs
- Exceptions.cs
- HtmlGenericControl.cs
- Deserializer.cs
- EdmProviderManifest.cs
- NodeLabelEditEvent.cs
- ProviderIncompatibleException.cs
- ContentValidator.cs
- EpmCustomContentWriterNodeData.cs
- AutomationPatternInfo.cs
- Nodes.cs
- PropertyMappingExceptionEventArgs.cs
- ControlPager.cs
- ActiveXHost.cs
- ConfigurationConverterBase.cs
- Condition.cs
- IdnMapping.cs
- DuplicateMessageDetector.cs
- DataGrid.cs
- XmlHierarchicalDataSourceView.cs
- TriggerActionCollection.cs
- StylusSystemGestureEventArgs.cs
- WebControlsSection.cs
- PKCS1MaskGenerationMethod.cs
- ListView.cs
- Drawing.cs
- DiscoveryClientReferences.cs
- HttpResponseHeader.cs
- DesignerOptionService.cs
- DataStorage.cs
- ObjectViewQueryResultData.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- FreeFormPanel.cs
- DirectionalLight.cs
- ValueChangedEventManager.cs
- Visual3DCollection.cs
- PointLight.cs
- ResizeGrip.cs
- SafeCancelMibChangeNotify.cs
- SR.cs
- ReadOnlyObservableCollection.cs
- DescendantQuery.cs
- _FtpDataStream.cs
- PageSetupDialog.cs
- GridProviderWrapper.cs
- SqlWebEventProvider.cs
- DictionaryBase.cs
- QuaternionRotation3D.cs
- HwndSourceKeyboardInputSite.cs
- XmlException.cs
- CssStyleCollection.cs
- JournalNavigationScope.cs
- InkCanvas.cs
- LinkConverter.cs
- ExpandCollapseIsCheckedConverter.cs
- InputLanguageSource.cs
- ExpressionParser.cs
- DataColumn.cs
- UnsafeCollabNativeMethods.cs
- WindowsStartMenu.cs
- ScrollViewer.cs
- Vector3D.cs
- FileDialogCustomPlace.cs
- MessageSecurityOverHttpElement.cs
- SecurityPolicySection.cs
- DataGridLinkButton.cs
- _DigestClient.cs
- exports.cs
- HMACRIPEMD160.cs
- UnconditionalPolicy.cs
- WSHttpBindingBaseElement.cs
- HttpCachePolicy.cs
- BindingGraph.cs
- CalculatedColumn.cs
- ImageInfo.cs
- MulticastOption.cs
- StorageEntityContainerMapping.cs
- JavascriptCallbackResponseProperty.cs
- CommandID.cs
- BindingList.cs
- TrustLevel.cs
- ContextMarshalException.cs
- IgnoreSectionHandler.cs
- DependentList.cs
- _emptywebproxy.cs
- EntityContainerEntitySetDefiningQuery.cs
- XamlFilter.cs
- ExpressionBinding.cs
- SRef.cs
- PropertyGroupDescription.cs
- BinaryNode.cs
- DocumentGrid.cs