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
- ByteAnimationUsingKeyFrames.cs
- HybridCollection.cs
- PropertyMapper.cs
- ProxyAttribute.cs
- ConnectionPoint.cs
- TextTreeRootNode.cs
- SimpleApplicationHost.cs
- DescriptionAttribute.cs
- Predicate.cs
- HMACSHA256.cs
- ExpressionNormalizer.cs
- DataGridViewColumnEventArgs.cs
- GridToolTip.cs
- TextSyndicationContent.cs
- XPathNavigator.cs
- odbcmetadatafactory.cs
- NaturalLanguageHyphenator.cs
- CommandBindingCollection.cs
- XPathScanner.cs
- EmissiveMaterial.cs
- KeyGestureConverter.cs
- StandardTransformFactory.cs
- ScriptReference.cs
- CodeCompiler.cs
- EnumValAlphaComparer.cs
- ManagementDateTime.cs
- Soap12ServerProtocol.cs
- HierarchicalDataBoundControlAdapter.cs
- Transform3DGroup.cs
- XPathParser.cs
- TimeSpan.cs
- MultiAsyncResult.cs
- ProfileSection.cs
- FileClassifier.cs
- UIPropertyMetadata.cs
- Peer.cs
- DispatcherFrame.cs
- Compiler.cs
- DeobfuscatingStream.cs
- Attributes.cs
- NumericExpr.cs
- ProvideValueServiceProvider.cs
- OperandQuery.cs
- NativeMethods.cs
- HttpRequest.cs
- OpCellTreeNode.cs
- TypeValidationEventArgs.cs
- ExpressionVisitor.cs
- ToolStripPanelRow.cs
- SafeHandles.cs
- Slider.cs
- UnsafeNativeMethods.cs
- BrowserCapabilitiesCodeGenerator.cs
- ExpressionConverter.cs
- CreateSequence.cs
- SynchronizingStream.cs
- ObjectDataSourceFilteringEventArgs.cs
- StartUpEventArgs.cs
- Type.cs
- Attributes.cs
- ListView.cs
- RightsManagementEncryptedStream.cs
- InlineUIContainer.cs
- IsolationInterop.cs
- GenericWebPart.cs
- BaseTreeIterator.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CultureInfo.cs
- ZipFileInfo.cs
- StyleXamlParser.cs
- CodeSubDirectoriesCollection.cs
- ExplicitDiscriminatorMap.cs
- TextEditorCopyPaste.cs
- TabControl.cs
- PersonalizationEntry.cs
- ClientEventManager.cs
- oledbmetadatacollectionnames.cs
- BackgroundWorker.cs
- WebPartManagerInternals.cs
- SmtpNtlmAuthenticationModule.cs
- WebScriptMetadataMessageEncoderFactory.cs
- BuildResultCache.cs
- FontWeights.cs
- glyphs.cs
- ScriptingAuthenticationServiceSection.cs
- TypeTypeConverter.cs
- COAUTHIDENTITY.cs
- RoutedEventArgs.cs
- DetailsViewRowCollection.cs
- DataGridViewRowEventArgs.cs
- FileCodeGroup.cs
- SqlDataSourceSummaryPanel.cs
- DataMisalignedException.cs
- DataBoundControlActionList.cs
- BindableAttribute.cs
- ClientTargetSection.cs
- SchemaLookupTable.cs
- StatusBarPanel.cs
- ContentDisposition.cs
- GifBitmapDecoder.cs