Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlAttributeOverrides.cs
- Expressions.cs
- UriExt.cs
- FrameworkElementFactory.cs
- TraceContextEventArgs.cs
- CommonGetThemePartSize.cs
- EventProvider.cs
- linebase.cs
- IndexedString.cs
- BufferedWebEventProvider.cs
- MergeLocalizationDirectives.cs
- BmpBitmapDecoder.cs
- TypeLoader.cs
- DbSetClause.cs
- IndexedEnumerable.cs
- PopupEventArgs.cs
- HttpWebRequestElement.cs
- TextRange.cs
- CqlGenerator.cs
- OleDbSchemaGuid.cs
- AnimationClock.cs
- AutoSizeToolBoxItem.cs
- QilReplaceVisitor.cs
- HGlobalSafeHandle.cs
- DateTimeFormat.cs
- SymDocumentType.cs
- ErrorWrapper.cs
- Empty.cs
- MainMenu.cs
- ExtensibleSyndicationObject.cs
- DataGridCheckBoxColumn.cs
- LocalizedNameDescriptionPair.cs
- FileDialogCustomPlace.cs
- MenuItemStyleCollectionEditor.cs
- ObjectNotFoundException.cs
- FigureParagraph.cs
- ExtensionQuery.cs
- EndpointFilterProvider.cs
- FixedSOMPageConstructor.cs
- IMembershipProvider.cs
- WebReferenceOptions.cs
- SiteMapNodeCollection.cs
- ResourceCategoryAttribute.cs
- JsonQNameDataContract.cs
- SystemIcons.cs
- ProcessModuleCollection.cs
- MemberJoinTreeNode.cs
- GeometryDrawing.cs
- ConfigsHelper.cs
- MembershipValidatePasswordEventArgs.cs
- SingleKeyFrameCollection.cs
- HandleExceptionArgs.cs
- CookieHandler.cs
- storepermission.cs
- Size3DValueSerializer.cs
- XmlAtomicValue.cs
- TextRangeEditTables.cs
- DecimalConverter.cs
- StateWorkerRequest.cs
- UnmanagedHandle.cs
- ApplicationFileParser.cs
- EnlistmentState.cs
- SqlAliasesReferenced.cs
- BoundPropertyEntry.cs
- XhtmlConformanceSection.cs
- XLinq.cs
- Tablet.cs
- SortKey.cs
- ImageField.cs
- SecurityException.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- Rectangle.cs
- SignedInfo.cs
- Rijndael.cs
- CreateParams.cs
- PersonalizableAttribute.cs
- dataobject.cs
- TCEAdapterGenerator.cs
- PeerApplication.cs
- ProtocolsConfiguration.cs
- BitmapEncoder.cs
- XmlSchemaImporter.cs
- ParserContext.cs
- WmpBitmapDecoder.cs
- KeyEventArgs.cs
- OleDbMetaDataFactory.cs
- UrlPath.cs
- CollectionContainer.cs
- SslStream.cs
- AspNetSynchronizationContext.cs
- ClientProtocol.cs
- SignatureDescription.cs
- IisNotInstalledException.cs
- UserPreferenceChangedEventArgs.cs
- hresults.cs
- SolidColorBrush.cs
- CornerRadiusConverter.cs
- DrawingAttributes.cs
- Form.cs
- Int32.cs