Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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() { }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PackageDigitalSignatureManager.cs
- ExtendedProtectionPolicyTypeConverter.cs
- TaskHelper.cs
- TCPClient.cs
- WSHttpBindingBaseElement.cs
- _AutoWebProxyScriptWrapper.cs
- ComponentDispatcher.cs
- SecurityUtils.cs
- StorageEntityTypeMapping.cs
- WeakKeyDictionary.cs
- ContentElement.cs
- ResourceProviderFactory.cs
- DelegateTypeInfo.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- X509Utils.cs
- TemplateEditingFrame.cs
- WebCategoryAttribute.cs
- KeyboardDevice.cs
- AutomationPropertyInfo.cs
- ProcessInfo.cs
- JoinElimination.cs
- FontDifferentiator.cs
- RelationshipConstraintValidator.cs
- DesignerAdapterAttribute.cs
- XmlSecureResolver.cs
- ConfigurationStrings.cs
- TcpWorkerProcess.cs
- webeventbuffer.cs
- EntityContainerRelationshipSetEnd.cs
- FontDriver.cs
- FormViewUpdateEventArgs.cs
- ScriptingSectionGroup.cs
- QilXmlReader.cs
- PrintDialog.cs
- OdbcEnvironment.cs
- COM2FontConverter.cs
- IsolatedStorageFilePermission.cs
- AssemblyCollection.cs
- WebPartDeleteVerb.cs
- ServiceOperationListItemList.cs
- FamilyTypefaceCollection.cs
- Baml6Assembly.cs
- DataGridViewRowHeaderCell.cs
- GraphicsContainer.cs
- mediaeventargs.cs
- RegistryPermission.cs
- DoubleAnimation.cs
- DeclaredTypeElementCollection.cs
- DataBindingHandlerAttribute.cs
- BaseCodeDomTreeGenerator.cs
- ContravarianceAdapter.cs
- DateTime.cs
- StylusPoint.cs
- RtfToXamlReader.cs
- BamlTreeMap.cs
- PropertyMetadata.cs
- IgnoreFlushAndCloseStream.cs
- InkCanvasFeedbackAdorner.cs
- ExceptionUtil.cs
- shaperfactoryquerycachekey.cs
- SchemaSetCompiler.cs
- MDIClient.cs
- LoginDesigner.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BitmapEffectDrawingContextState.cs
- FrameworkElementFactoryMarkupObject.cs
- SerializableAttribute.cs
- FontNamesConverter.cs
- PerCallInstanceContextProvider.cs
- ExtenderControl.cs
- XXXInfos.cs
- DecodeHelper.cs
- Msmq.cs
- OracleDataAdapter.cs
- PassportAuthenticationEventArgs.cs
- Int16Storage.cs
- GenericIdentity.cs
- ConsoleCancelEventArgs.cs
- PageCatalogPart.cs
- ValidationHelper.cs
- ApplyTemplatesAction.cs
- ChannelHandler.cs
- ReadOnlyHierarchicalDataSource.cs
- CodeIndexerExpression.cs
- TransformationRules.cs
- XPathParser.cs
- StrokeIntersection.cs
- QilName.cs
- DockingAttribute.cs
- SqlUtils.cs
- RenderCapability.cs
- UserControlAutomationPeer.cs
- TitleStyle.cs
- ConfigXmlElement.cs
- CollectionChangeEventArgs.cs
- Int32.cs
- TreeIterator.cs
- XmlHelper.cs
- ClaimTypes.cs