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
- ProjectionCamera.cs
- XmlEncoding.cs
- QilPatternVisitor.cs
- CodeDOMUtility.cs
- CodeParameterDeclarationExpression.cs
- HexParser.cs
- Header.cs
- MessageBox.cs
- UnsafeNativeMethods.cs
- DataGridViewColumnHeaderCell.cs
- AssemblySettingAttributes.cs
- SafeProcessHandle.cs
- DESCryptoServiceProvider.cs
- MatrixUtil.cs
- ObjectTag.cs
- WpfKnownTypeInvoker.cs
- StrokeNode.cs
- LineServicesRun.cs
- CqlParser.cs
- RemoteWebConfigurationHostStream.cs
- DisplayMemberTemplateSelector.cs
- CellRelation.cs
- XsdDuration.cs
- ResourceType.cs
- OAVariantLib.cs
- OleDbFactory.cs
- StringCollectionMarkupSerializer.cs
- PropertyToken.cs
- X509CertificateTrustedIssuerElement.cs
- FlagsAttribute.cs
- GeometryCombineModeValidation.cs
- designeractionlistschangedeventargs.cs
- AspNetHostingPermission.cs
- NavigationFailedEventArgs.cs
- StrokeNodeEnumerator.cs
- DesignerCatalogPartChrome.cs
- RenderContext.cs
- FastEncoderWindow.cs
- DBCSCodePageEncoding.cs
- PropertyIDSet.cs
- MSHTMLHost.cs
- MouseGestureConverter.cs
- FlowDocumentFormatter.cs
- WeakRefEnumerator.cs
- Pair.cs
- PersistenceContext.cs
- WebPartEventArgs.cs
- DataDesignUtil.cs
- SuppressMergeCheckAttribute.cs
- COAUTHIDENTITY.cs
- List.cs
- SBCSCodePageEncoding.cs
- SymLanguageType.cs
- ProviderSettings.cs
- WinInet.cs
- BitmapEffectrendercontext.cs
- ObjectViewEntityCollectionData.cs
- PageResolution.cs
- TextParagraphProperties.cs
- WindowsAuthenticationEventArgs.cs
- ControlAdapter.cs
- FloaterParagraph.cs
- TraceSource.cs
- ProvidersHelper.cs
- DataGridTableStyleMappingNameEditor.cs
- ToolStripMenuItem.cs
- NeutralResourcesLanguageAttribute.cs
- Bidi.cs
- SecurityManager.cs
- SiteMapProvider.cs
- TileModeValidation.cs
- SafeProcessHandle.cs
- StorageInfo.cs
- TextControl.cs
- ConfigurationSectionCollection.cs
- ProtocolsConfiguration.cs
- VisualTreeHelper.cs
- BookmarkEventArgs.cs
- DateBoldEvent.cs
- InstanceBehavior.cs
- SqlConnectionString.cs
- DataControlCommands.cs
- SiteMapNode.cs
- OperatorExpressions.cs
- AstNode.cs
- CommonGetThemePartSize.cs
- MediaContextNotificationWindow.cs
- SpellerError.cs
- ComponentResourceKeyConverter.cs
- XPathArrayIterator.cs
- ObjectTypeMapping.cs
- CharacterBuffer.cs
- ObjectDisposedException.cs
- SafeSystemMetrics.cs
- MessageQueuePermissionEntry.cs
- XmlSchemaSimpleContentRestriction.cs
- RegisteredScript.cs
- NotConverter.cs
- Stream.cs
- ParserStreamGeometryContext.cs