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
- RequestFactory.cs
- SettingsContext.cs
- Page.cs
- AndMessageFilter.cs
- SuppressMessageAttribute.cs
- PointCollectionConverter.cs
- MsmqIntegrationChannelFactory.cs
- StatusBarItem.cs
- StringAnimationBase.cs
- XamlReaderHelper.cs
- TimeSpan.cs
- PaperSource.cs
- PropertyConverter.cs
- StylusCaptureWithinProperty.cs
- XmlSchemaImporter.cs
- ResourceContainer.cs
- ASCIIEncoding.cs
- DebugView.cs
- ProfileProvider.cs
- WebContentFormatHelper.cs
- SymbolMethod.cs
- UnsafeNativeMethodsTablet.cs
- SurrogateSelector.cs
- ConfigXmlElement.cs
- ListManagerBindingsCollection.cs
- LayoutTableCell.cs
- FormViewPagerRow.cs
- MethodAccessException.cs
- ServiceDescriptions.cs
- StandardRuntimeEnumValidator.cs
- ResourceContainer.cs
- MonthChangedEventArgs.cs
- DesignTimeParseData.cs
- EncoderBestFitFallback.cs
- TextRenderingModeValidation.cs
- TransformerInfoCollection.cs
- ListBindingHelper.cs
- MouseEvent.cs
- CommentEmitter.cs
- PolyBezierSegment.cs
- ClipboardData.cs
- DateTimeOffsetConverter.cs
- GenericAuthenticationEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- PropertyGridView.cs
- IntersectQueryOperator.cs
- metadatamappinghashervisitor.cs
- OperationAbortedException.cs
- SafeHandles.cs
- XappLauncher.cs
- CompositionTarget.cs
- XPathNavigatorKeyComparer.cs
- HtmlMeta.cs
- PageBuildProvider.cs
- StaticSiteMapProvider.cs
- ParallelTimeline.cs
- KeyMatchBuilder.cs
- ObjectIDGenerator.cs
- IncrementalCompileAnalyzer.cs
- Identity.cs
- InputLanguageManager.cs
- GridViewSelectEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- StringPropertyBuilder.cs
- XmlQueryRuntime.cs
- StringUtil.cs
- MenuItemAutomationPeer.cs
- LinqDataSourceView.cs
- TypeSystem.cs
- HuffCodec.cs
- TimeSpanParse.cs
- BidPrivateBase.cs
- MimeAnyImporter.cs
- AdRotator.cs
- PerformanceCounterManager.cs
- Variable.cs
- TypeToArgumentTypeConverter.cs
- CodeMemberField.cs
- CommandEventArgs.cs
- FileAuthorizationModule.cs
- RawAppCommandInputReport.cs
- cookieexception.cs
- XmlNotation.cs
- ConstructorNeedsTagAttribute.cs
- ServiceNameElement.cs
- InternalControlCollection.cs
- ValidationSummaryDesigner.cs
- DataColumnChangeEvent.cs
- SettingsSection.cs
- PeerDefaultCustomResolverClient.cs
- DebugInfoGenerator.cs
- CacheChildrenQuery.cs
- MenuCommandsChangedEventArgs.cs
- UpdateTranslator.cs
- FileLogRecord.cs
- PartialTrustVisibleAssemblyCollection.cs
- EntityDataReader.cs
- UnsignedPublishLicense.cs
- ProgramNode.cs
- SqlParameterCollection.cs