Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
// ==--==
/*============================================================
**
** 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
- ScrollProperties.cs
- UInt32Storage.cs
- FixedFlowMap.cs
- NotifyCollectionChangedEventArgs.cs
- TextEditorThreadLocalStore.cs
- ThemeConfigurationDialog.cs
- SelectManyQueryOperator.cs
- VirtualDirectoryMapping.cs
- KeyPressEvent.cs
- BindingList.cs
- ExpressionTextBox.xaml.cs
- ConsoleTraceListener.cs
- ProjectionPathBuilder.cs
- OleCmdHelper.cs
- QilTargetType.cs
- BodyGlyph.cs
- AccessedThroughPropertyAttribute.cs
- AxHost.cs
- ExplicitDiscriminatorMap.cs
- TrustManager.cs
- SerializationSectionGroup.cs
- LifetimeServices.cs
- KeyEvent.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RuntimeArgumentHandle.cs
- ArrayWithOffset.cs
- NullableConverter.cs
- CodeMethodReturnStatement.cs
- AspNetSynchronizationContext.cs
- PrintingPermissionAttribute.cs
- XPathNodeHelper.cs
- AssemblyCache.cs
- LoggedException.cs
- EnumConverter.cs
- ThreadAbortException.cs
- Panel.cs
- NumericPagerField.cs
- sqlnorm.cs
- HostingPreferredMapPath.cs
- FormatException.cs
- HMACSHA1.cs
- TempFiles.cs
- DataRowExtensions.cs
- FixedSOMSemanticBox.cs
- StylusEditingBehavior.cs
- FormConverter.cs
- GeometryGroup.cs
- DetailsView.cs
- IgnoreSectionHandler.cs
- DocumentOrderComparer.cs
- ArcSegment.cs
- Exceptions.cs
- AttributeQuery.cs
- FileUtil.cs
- counter.cs
- SpellerInterop.cs
- BulletChrome.cs
- TimelineClockCollection.cs
- BamlLocalizabilityResolver.cs
- UpdateProgress.cs
- TypeReference.cs
- XmlAttributeCollection.cs
- TextChange.cs
- OdbcFactory.cs
- RuntimeEnvironment.cs
- LifetimeServices.cs
- XsltConvert.cs
- RequestSecurityToken.cs
- ElapsedEventArgs.cs
- KeyGesture.cs
- metadatamappinghashervisitor.cs
- HtmlElementErrorEventArgs.cs
- MemberInfoSerializationHolder.cs
- UnsignedPublishLicense.cs
- ErrorItem.cs
- AuthenticationConfig.cs
- DesignerActionPanel.cs
- SqlTrackingQuery.cs
- WebScriptMetadataMessage.cs
- SqlExpander.cs
- ScrollChangedEventArgs.cs
- GeometryCombineModeValidation.cs
- ObjectSet.cs
- DataGridViewTextBoxCell.cs
- OutputCacheProfile.cs
- SmiEventSink_DeferedProcessing.cs
- Point4DValueSerializer.cs
- SqlCaseSimplifier.cs
- RunInstallerAttribute.cs
- CriticalHandle.cs
- EventDescriptorCollection.cs
- DataGridViewComboBoxEditingControl.cs
- SystemIPGlobalStatistics.cs
- StorageTypeMapping.cs
- StringKeyFrameCollection.cs
- SrgsDocument.cs
- MenuCommand.cs
- LinqDataSourceStatusEventArgs.cs
- SchemaDeclBase.cs
- MdiWindowListItemConverter.cs