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
- KeyBinding.cs
- SuppressIldasmAttribute.cs
- DataList.cs
- Rules.cs
- TablePatternIdentifiers.cs
- CompositeScriptReferenceEventArgs.cs
- PermissionSetTriple.cs
- SByteStorage.cs
- WebPartMovingEventArgs.cs
- MethodCallExpression.cs
- WebControl.cs
- MemoryStream.cs
- TransformCollection.cs
- DependencyPropertyValueSerializer.cs
- Rotation3DKeyFrameCollection.cs
- OleDbDataAdapter.cs
- RightNameExpirationInfoPair.cs
- EnvelopedSignatureTransform.cs
- RootProfilePropertySettingsCollection.cs
- TemplateBuilder.cs
- XmlSchemaComplexContent.cs
- CanExecuteRoutedEventArgs.cs
- WebPartEditorCancelVerb.cs
- ExitEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- FileSecurity.cs
- ITextView.cs
- CodeTypeDeclarationCollection.cs
- ZipIOLocalFileHeader.cs
- mactripleDES.cs
- FormatConvertedBitmap.cs
- NetworkInformationException.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- FormatException.cs
- Message.cs
- AnonymousIdentificationSection.cs
- XmlArrayItemAttribute.cs
- CheckBoxField.cs
- DesignerActionKeyboardBehavior.cs
- DBBindings.cs
- altserialization.cs
- basecomparevalidator.cs
- AssemblyAttributesGoHere.cs
- EmptyEnumerator.cs
- WorkerRequest.cs
- ToolStripGripRenderEventArgs.cs
- ScriptingProfileServiceSection.cs
- RemotingClientProxy.cs
- FileDialog.cs
- ApplicationInfo.cs
- SoapSchemaExporter.cs
- EventDrivenDesigner.cs
- TextEditorLists.cs
- ShutDownListener.cs
- OutputCacheProfileCollection.cs
- UIHelper.cs
- WorkflowExecutor.cs
- Container.cs
- _Semaphore.cs
- FeatureManager.cs
- ColumnReorderedEventArgs.cs
- DBNull.cs
- EntityObject.cs
- XmlSchemaSimpleContentExtension.cs
- RawStylusInputCustomDataList.cs
- ZipFileInfo.cs
- DocumentApplication.cs
- NetworkInformationException.cs
- DocumentEventArgs.cs
- DomainLiteralReader.cs
- ValueHandle.cs
- SecurityProtocolFactory.cs
- HorizontalAlignConverter.cs
- XslAstAnalyzer.cs
- Column.cs
- VirtualPathProvider.cs
- DbProviderManifest.cs
- IndexingContentUnit.cs
- CustomAttributeSerializer.cs
- SourceChangedEventArgs.cs
- EpmSourceTree.cs
- DateTimeSerializationSection.cs
- NavigationPropertyAccessor.cs
- SessionPageStatePersister.cs
- VisualTreeHelper.cs
- TransformerInfo.cs
- DateTimeHelper.cs
- WindowsListView.cs
- MultiAsyncResult.cs
- ManualResetEventSlim.cs
- ProvideValueServiceProvider.cs
- TextCharacters.cs
- SecurityVerifiedMessage.cs
- WindowsEditBox.cs
- HttpCacheParams.cs
- ObjectDataSource.cs
- HostingEnvironmentSection.cs
- NativeBuffer.cs
- PopupRoot.cs
- TokenizerHelper.cs