Code:
/ 4.0 / 4.0 / 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.
// ==++==
//
// 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
- FormClosingEvent.cs
- DictionarySectionHandler.cs
- Model3DGroup.cs
- PageBuildProvider.cs
- PeerPresenceInfo.cs
- FormattedText.cs
- EventEntry.cs
- PanelContainerDesigner.cs
- XamlParser.cs
- SplitterPanel.cs
- XmlTextWriter.cs
- SecurityUtils.cs
- CodeAccessPermission.cs
- WindowsListViewItemCheckBox.cs
- ClientUtils.cs
- CommonDialog.cs
- TextCompositionManager.cs
- SchemaNotation.cs
- TextDocumentView.cs
- XmlFileEditor.cs
- CodeGenHelper.cs
- LambdaSerializationException.cs
- DetailsViewPageEventArgs.cs
- QueryConverter.cs
- CmsUtils.cs
- CustomAttributeFormatException.cs
- GridEntry.cs
- FixedNode.cs
- InputBuffer.cs
- SoapObjectWriter.cs
- Trace.cs
- DataGridViewComboBoxEditingControl.cs
- HtmlValidatorAdapter.cs
- DatasetMethodGenerator.cs
- LicenseProviderAttribute.cs
- EventManager.cs
- HttpHandlersSection.cs
- SiteMembershipCondition.cs
- SqlLiftIndependentRowExpressions.cs
- SelectionItemPatternIdentifiers.cs
- ProxyWebPartConnectionCollection.cs
- BlockingCollection.cs
- EventWaitHandleSecurity.cs
- ServiceReference.cs
- HttpResponseMessageProperty.cs
- KoreanCalendar.cs
- LineUtil.cs
- Command.cs
- MarkupCompilePass1.cs
- InnerItemCollectionView.cs
- DocumentViewerConstants.cs
- DataRow.cs
- DiffuseMaterial.cs
- IsolatedStorage.cs
- Query.cs
- ALinqExpressionVisitor.cs
- ScalarType.cs
- AsyncOperation.cs
- EUCJPEncoding.cs
- LocationSectionRecord.cs
- BooleanFacetDescriptionElement.cs
- XPathDocumentBuilder.cs
- Restrictions.cs
- ResXResourceReader.cs
- DataRelation.cs
- SymbolType.cs
- XmlIlTypeHelper.cs
- SchemaTypeEmitter.cs
- XmlCountingReader.cs
- XPathExpr.cs
- ConnectionStringsExpressionBuilder.cs
- HostedHttpContext.cs
- List.cs
- CommandValueSerializer.cs
- VBCodeProvider.cs
- PropVariant.cs
- BitmapDownload.cs
- MemberDescriptor.cs
- ReturnValue.cs
- ImageButton.cs
- ConnectionPoolManager.cs
- TreeNodeStyle.cs
- ServiceDescriptionContext.cs
- util.cs
- ImageMap.cs
- Region.cs
- DropTarget.cs
- WebRequest.cs
- EnumValAlphaComparer.cs
- CurrencyManager.cs
- ConfigurationManagerInternalFactory.cs
- CollectionViewGroup.cs
- Bold.cs
- MulticastNotSupportedException.cs
- IgnoreSectionHandler.cs
- IsolatedStorageFile.cs
- SamlAuthenticationClaimResource.cs
- ServicesExceptionNotHandledEventArgs.cs
- BaseTemplateBuildProvider.cs
- CategoryAttribute.cs