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
- PermissionSet.cs
- EndpointBehaviorElement.cs
- TimeStampChecker.cs
- TreeViewImageIndexConverter.cs
- ToolTipAutomationPeer.cs
- Effect.cs
- XmlTextWriter.cs
- DataGridViewCellEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- RawTextInputReport.cs
- XmlArrayItemAttribute.cs
- FacetValueContainer.cs
- CustomErrorsSectionWrapper.cs
- ParamArrayAttribute.cs
- TransactedBatchingBehavior.cs
- SplitContainer.cs
- JpegBitmapEncoder.cs
- ToolStripDropDownDesigner.cs
- AppDomainProtocolHandler.cs
- MDIControlStrip.cs
- GeneralTransformGroup.cs
- ThousandthOfEmRealDoubles.cs
- Material.cs
- DNS.cs
- Translator.cs
- Rfc2898DeriveBytes.cs
- MatrixTransform.cs
- NotifyParentPropertyAttribute.cs
- invalidudtexception.cs
- ProxyFragment.cs
- TreeViewItem.cs
- NativeMethods.cs
- InkCanvasAutomationPeer.cs
- StylusShape.cs
- WindowsFont.cs
- HTTPNotFoundHandler.cs
- TextParaLineResult.cs
- FileUpload.cs
- XmlResolver.cs
- UInt16.cs
- MSAANativeProvider.cs
- Polygon.cs
- Int32Storage.cs
- PolyBezierSegment.cs
- TdsParserStateObject.cs
- ProtocolsConfigurationHandler.cs
- ProcessHostMapPath.cs
- Vector3DAnimationBase.cs
- HttpCachePolicyElement.cs
- ClientOptions.cs
- WebPartEditVerb.cs
- IResourceProvider.cs
- WinFormsUtils.cs
- GridViewUpdateEventArgs.cs
- ServiceNameElementCollection.cs
- CalendarDataBindingHandler.cs
- StringAnimationUsingKeyFrames.cs
- SessionEndingEventArgs.cs
- KeyEventArgs.cs
- TargetPerspective.cs
- HostSecurityManager.cs
- StylusLogic.cs
- BitVector32.cs
- CompressedStack.cs
- EpmContentSerializer.cs
- ElementsClipboardData.cs
- BitmapMetadata.cs
- TemplateControl.cs
- WorkItem.cs
- WebPart.cs
- ExpandCollapsePattern.cs
- XhtmlTextWriter.cs
- ConfigsHelper.cs
- PocoEntityKeyStrategy.cs
- LeaseManager.cs
- Menu.cs
- EmptyReadOnlyDictionaryInternal.cs
- EntityDesignerUtils.cs
- CompiledWorkflowDefinitionContext.cs
- PopupRoot.cs
- Header.cs
- BindingListCollectionView.cs
- TableParaClient.cs
- StyleHelper.cs
- SingleConverter.cs
- ArrayTypeMismatchException.cs
- VirtualDirectoryMappingCollection.cs
- XmlSchemaParticle.cs
- DesignerDataColumn.cs
- ApplicationFileParser.cs
- SourceLocation.cs
- WinFormsComponentEditor.cs
- CollectionViewGroupInternal.cs
- TimeEnumHelper.cs
- ZipPackagePart.cs
- Automation.cs
- PrivilegedConfigurationManager.cs
- sitestring.cs
- ZoomPercentageConverter.cs
- ComponentCollection.cs