Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NonSerializedAttribute.cs / 1305376 / NonSerializedAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: NonSerializedAttribute ** ** ** Purpose: Used to mark a member as being not-serialized ** ** ============================================================*/ namespace System { using System.Reflection; [AttributeUsage(AttributeTargets.Field, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class NonSerializedAttribute : Attribute { internal static Attribute GetCustomAttribute(RuntimeFieldInfo field) { if ((field.Attributes & FieldAttributes.NotSerialized) == 0) return null; return new NonSerializedAttribute(); } internal static bool IsDefined(RuntimeFieldInfo field) { return (field.Attributes & FieldAttributes.NotSerialized) != 0; } public NonSerializedAttribute() { } } } // 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
- OneOfConst.cs
- LoaderAllocator.cs
- WindowsListViewGroupSubsetLink.cs
- SiteMapDataSource.cs
- CodeConstructor.cs
- PersonalizationDictionary.cs
- Queue.cs
- SemanticResolver.cs
- ToolStripItemCollection.cs
- DataGridViewSortCompareEventArgs.cs
- autovalidator.cs
- FontDriver.cs
- EdgeProfileValidation.cs
- InkCanvasFeedbackAdorner.cs
- SQLDateTime.cs
- QueueProcessor.cs
- ElementsClipboardData.cs
- webbrowsersite.cs
- SiteMapHierarchicalDataSourceView.cs
- FigureParagraph.cs
- Rectangle.cs
- DataGridViewCellValidatingEventArgs.cs
- Header.cs
- HttpListener.cs
- ErrorHandler.cs
- ProfileInfo.cs
- SiteMap.cs
- ServiceDiscoveryElement.cs
- DisplayNameAttribute.cs
- EnumBuilder.cs
- SystemIPv4InterfaceProperties.cs
- XamlValidatingReader.cs
- BatchParser.cs
- OpCopier.cs
- RegionInfo.cs
- EventTrigger.cs
- DateTimeOffsetStorage.cs
- EntityTemplateFactory.cs
- SchemaElementDecl.cs
- ObfuscateAssemblyAttribute.cs
- RoleServiceManager.cs
- SingleObjectCollection.cs
- SqlTopReducer.cs
- HtmlSelect.cs
- X509Utils.cs
- Exceptions.cs
- UnsafeNativeMethods.cs
- HijriCalendar.cs
- SqlDataSourceParameterParser.cs
- FileInfo.cs
- EdmComplexTypeAttribute.cs
- AnnouncementClient.cs
- UIElementParagraph.cs
- Converter.cs
- DisplayNameAttribute.cs
- HttpModulesSection.cs
- Material.cs
- FormViewDeletedEventArgs.cs
- HttpCachePolicyBase.cs
- RoleManagerEventArgs.cs
- TokenFactoryBase.cs
- RsaKeyIdentifierClause.cs
- KeyFrames.cs
- InstanceOwnerException.cs
- DelegatedStream.cs
- StoragePropertyMapping.cs
- StringStorage.cs
- PasswordBox.cs
- XmlIncludeAttribute.cs
- ContentTextAutomationPeer.cs
- InputBuffer.cs
- HostedAspNetEnvironment.cs
- CapabilitiesAssignment.cs
- EntityModelBuildProvider.cs
- ExtensibleClassFactory.cs
- BooleanExpr.cs
- ObjectDataSourceMethodEditor.cs
- BitmapFrameDecode.cs
- ControlSerializer.cs
- EntityDataSourceViewSchema.cs
- TransformerTypeCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ConfigXmlComment.cs
- PrivacyNoticeBindingElement.cs
- PerformanceCounterPermission.cs
- Identifier.cs
- ProvideValueServiceProvider.cs
- SendKeys.cs
- ComponentRenameEvent.cs
- XPathItem.cs
- UserControlParser.cs
- SoapAttributeOverrides.cs
- ApplicationInfo.cs
- Size.cs
- ItemList.cs
- UniqueEventHelper.cs
- InternalSafeNativeMethods.cs
- rsa.cs
- SqlUtils.cs
- ConfigPathUtility.cs