Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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() { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontNamesConverter.cs
- URLIdentityPermission.cs
- HttpWebRequestElement.cs
- HtmlHead.cs
- DataSvcMapFile.cs
- Span.cs
- entityreference_tresulttype.cs
- RequestDescription.cs
- CustomMenuItemCollection.cs
- ContentFileHelper.cs
- SizeKeyFrameCollection.cs
- dataprotectionpermission.cs
- XmlRawWriter.cs
- PackageRelationshipSelector.cs
- GraphicsContainer.cs
- Misc.cs
- ImageMap.cs
- WindowsClientElement.cs
- CodeDOMProvider.cs
- SoapSchemaExporter.cs
- MultiPageTextView.cs
- safesecurityhelperavalon.cs
- CombinedGeometry.cs
- AlgoModule.cs
- MetadataAssemblyHelper.cs
- UICuesEvent.cs
- NetPeerTcpBinding.cs
- DbParameterCollection.cs
- PrimaryKeyTypeConverter.cs
- odbcmetadatacollectionnames.cs
- SqlParameter.cs
- ApplicationFileParser.cs
- EditorPart.cs
- SoapHeaderException.cs
- CodeEntryPointMethod.cs
- NodeFunctions.cs
- FilteredDataSetHelper.cs
- SqlCacheDependencySection.cs
- ResolveCriteriaApril2005.cs
- AspCompat.cs
- returneventsaver.cs
- JobInputBins.cs
- NullableDoubleAverageAggregationOperator.cs
- ObsoleteAttribute.cs
- SequentialUshortCollection.cs
- TextEvent.cs
- DataGridViewCellValueEventArgs.cs
- FormViewDeleteEventArgs.cs
- ExceptionUtil.cs
- EditorPartChrome.cs
- XmlSerializerSection.cs
- MethodToken.cs
- LayoutSettings.cs
- PermissionListSet.cs
- GridView.cs
- WebPart.cs
- ToolboxControl.cs
- XmlStreamStore.cs
- InsufficientMemoryException.cs
- TextParagraphView.cs
- DocumentPaginator.cs
- ClientUrlResolverWrapper.cs
- TCEAdapterGenerator.cs
- UpdateDelegates.Generated.cs
- ConfigurationLockCollection.cs
- CellIdBoolean.cs
- CodeGenerator.cs
- ResXResourceSet.cs
- Propagator.Evaluator.cs
- SqlIdentifier.cs
- TraceSection.cs
- PropertyChangingEventArgs.cs
- XmlCharacterData.cs
- BooleanConverter.cs
- TickBar.cs
- AdvancedBindingPropertyDescriptor.cs
- HttpPostClientProtocol.cs
- EventPrivateKey.cs
- ObjRef.cs
- ObservableDictionary.cs
- AstTree.cs
- ObjectViewQueryResultData.cs
- TreeViewHitTestInfo.cs
- SqlDataSourceView.cs
- RawAppCommandInputReport.cs
- MessageBuilder.cs
- FormatException.cs
- SuppressMessageAttribute.cs
- TypeForwardedToAttribute.cs
- HttpCacheVary.cs
- DataRecordInternal.cs
- AddressUtility.cs
- SelectionPatternIdentifiers.cs
- BufferedResponseStream.cs
- AnonymousIdentificationModule.cs
- PresentationTraceSources.cs
- SimpleExpression.cs
- DEREncoding.cs
- RecognizedWordUnit.cs
- PropertyEntry.cs