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
- SimpleFileLog.cs
- ValueUnavailableException.cs
- ScriptControl.cs
- Matrix3D.cs
- ParentUndoUnit.cs
- ScriptingSectionGroup.cs
- MediaEntryAttribute.cs
- _SecureChannel.cs
- ProfilePropertySettings.cs
- WmlImageAdapter.cs
- JavaScriptString.cs
- CanExecuteRoutedEventArgs.cs
- _ScatterGatherBuffers.cs
- ToolStripSeparatorRenderEventArgs.cs
- InstanceData.cs
- dataprotectionpermission.cs
- ContainsRowNumberChecker.cs
- DataGridViewBindingCompleteEventArgs.cs
- EventLogSession.cs
- UdpDiscoveryEndpoint.cs
- CodeIndexerExpression.cs
- SecurityManager.cs
- CacheRequest.cs
- CatalogZoneDesigner.cs
- ListBox.cs
- DefaultProxySection.cs
- SoapInteropTypes.cs
- JavaScriptString.cs
- StyleSheetComponentEditor.cs
- Win32.cs
- ResourcePermissionBase.cs
- CopyNodeSetAction.cs
- EmptyReadOnlyDictionaryInternal.cs
- InsufficientMemoryException.cs
- RawUIStateInputReport.cs
- IncomingWebResponseContext.cs
- FromReply.cs
- Byte.cs
- TaiwanLunisolarCalendar.cs
- OpenTypeCommon.cs
- ContextConfiguration.cs
- ContextToken.cs
- CqlParser.cs
- FixedLineResult.cs
- DataContractSet.cs
- CombinedHttpChannel.cs
- ListViewSelectEventArgs.cs
- EnumMember.cs
- ToolStripItemTextRenderEventArgs.cs
- ListSortDescription.cs
- XsltOutput.cs
- ComContractElementCollection.cs
- Label.cs
- Enlistment.cs
- CodeTypeDelegate.cs
- XmlSchemaType.cs
- ModuleBuilder.cs
- BitmapEffectRenderDataResource.cs
- PageParser.cs
- ResolveNameEventArgs.cs
- wgx_commands.cs
- TraceLog.cs
- RichTextBoxAutomationPeer.cs
- ScriptServiceAttribute.cs
- OdbcConnectionOpen.cs
- CachedBitmap.cs
- ApplicationContext.cs
- BrowsableAttribute.cs
- Walker.cs
- MappingException.cs
- XmlSchemaSet.cs
- SQLBytesStorage.cs
- PolicyValidationException.cs
- AdornerPresentationContext.cs
- SafeRightsManagementEnvironmentHandle.cs
- xamlnodes.cs
- HMACRIPEMD160.cs
- SoapReflectionImporter.cs
- SafeHandles.cs
- XPathNode.cs
- MarshalByValueComponent.cs
- BindingContext.cs
- UMPAttributes.cs
- ConfigurationManager.cs
- ApplicationFileParser.cs
- Assert.cs
- ReflectionTypeLoadException.cs
- ScriptingScriptResourceHandlerSection.cs
- QilVisitor.cs
- InternalSafeNativeMethods.cs
- WebConvert.cs
- DataStreamFromComStream.cs
- safex509handles.cs
- ClickablePoint.cs
- COM2ColorConverter.cs
- ProtectedConfigurationSection.cs
- BindingsSection.cs
- HealthMonitoringSection.cs
- InstanceDataCollection.cs
- ReferenceEqualityComparer.cs