Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / NonSerializedAttribute.cs / 1 / 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() { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AppDomain.cs
- Oid.cs
- NavigationProperty.cs
- CatalogZoneBase.cs
- DataGridViewBindingCompleteEventArgs.cs
- ExtentCqlBlock.cs
- EditingCommands.cs
- MethodBuilderInstantiation.cs
- DbCommandTree.cs
- SQLDecimal.cs
- Attribute.cs
- LocatorPartList.cs
- connectionpool.cs
- unsafenativemethodsother.cs
- DependencyStoreSurrogate.cs
- GeometryDrawing.cs
- Run.cs
- DataGridViewHeaderCell.cs
- WindowHideOrCloseTracker.cs
- EntityDataSourceViewSchema.cs
- CodeArrayIndexerExpression.cs
- WaitHandleCannotBeOpenedException.cs
- XPathNavigatorKeyComparer.cs
- MobileFormsAuthentication.cs
- Event.cs
- RootBrowserWindow.cs
- TCPListener.cs
- ProcessInfo.cs
- VirtualPathProvider.cs
- TraceListener.cs
- TableChangeProcessor.cs
- CompilerInfo.cs
- x509utils.cs
- RightsManagementPermission.cs
- TableColumnCollection.cs
- ToolStripDropDown.cs
- TextTreeInsertUndoUnit.cs
- HttpProfileGroupBase.cs
- QilTypeChecker.cs
- EditorAttribute.cs
- TreeNodeClickEventArgs.cs
- KernelTypeValidation.cs
- WindowsHyperlink.cs
- StreamInfo.cs
- DropShadowEffect.cs
- SuppressMergeCheckAttribute.cs
- EntityDataSourceMemberPath.cs
- SqlStream.cs
- TextProperties.cs
- FactoryId.cs
- RepeaterDataBoundAdapter.cs
- DefaultIfEmptyQueryOperator.cs
- XmlNodeReader.cs
- DNS.cs
- QueryUtil.cs
- OleDbTransaction.cs
- JpegBitmapEncoder.cs
- NamespaceDisplay.xaml.cs
- MsmqQueue.cs
- XmlAttributes.cs
- BinaryFormatterWriter.cs
- TemplateXamlTreeBuilder.cs
- FontStretches.cs
- CommandPlan.cs
- MachineKeyValidationConverter.cs
- DockPatternIdentifiers.cs
- QilValidationVisitor.cs
- ListViewInsertEventArgs.cs
- IssuerInformation.cs
- ChangeProcessor.cs
- Utilities.cs
- AudioLevelUpdatedEventArgs.cs
- DataBinding.cs
- XmlEntity.cs
- ToolboxItemSnapLineBehavior.cs
- MsmqBindingElementBase.cs
- XmlReflectionImporter.cs
- CanExecuteRoutedEventArgs.cs
- WindowsHyperlink.cs
- HttpRequestTraceRecord.cs
- Psha1DerivedKeyGeneratorHelper.cs
- MsmqAuthenticationMode.cs
- Stack.cs
- VisualProxy.cs
- validationstate.cs
- ConditionCollection.cs
- DPCustomTypeDescriptor.cs
- ContainerFilterService.cs
- ValidatedControlConverter.cs
- Label.cs
- AttributeProviderAttribute.cs
- XPathNode.cs
- safex509handles.cs
- CharacterMetricsDictionary.cs
- ToolStrip.cs
- NotifyIcon.cs
- CodeLinePragma.cs
- DesignerTransaction.cs
- UrlPath.cs
- BooleanToVisibilityConverter.cs