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
- PipelineModuleStepContainer.cs
- EntitySqlQueryState.cs
- ThousandthOfEmRealDoubles.cs
- HostnameComparisonMode.cs
- ReferentialConstraint.cs
- CodeCatchClauseCollection.cs
- KnownIds.cs
- DbDataReader.cs
- ImageInfo.cs
- FollowerQueueCreator.cs
- TextPatternIdentifiers.cs
- ManagementNamedValueCollection.cs
- ErrorCodes.cs
- ScrollableControl.cs
- MessageDecoder.cs
- ConvertEvent.cs
- BrowserInteropHelper.cs
- DataServiceProviderMethods.cs
- ApplicationCommands.cs
- WebPartTransformerAttribute.cs
- QueryOptionExpression.cs
- OledbConnectionStringbuilder.cs
- CallSiteBinder.cs
- InfoCardTraceRecord.cs
- _CacheStreams.cs
- DtrList.cs
- TextSimpleMarkerProperties.cs
- Pen.cs
- BaseResourcesBuildProvider.cs
- LoginCancelEventArgs.cs
- TimerEventSubscriptionCollection.cs
- HandlerBase.cs
- XmlObjectSerializerReadContextComplex.cs
- AppendHelper.cs
- XPathSelectionIterator.cs
- JsonFormatWriterGenerator.cs
- ZipIOModeEnforcingStream.cs
- DropTarget.cs
- VoiceObjectToken.cs
- StringOutput.cs
- BamlLocalizableResource.cs
- userdatakeys.cs
- ColorConvertedBitmap.cs
- HttpProcessUtility.cs
- LogWriteRestartAreaAsyncResult.cs
- CustomWebEventKey.cs
- RuntimeConfigurationRecord.cs
- HostProtectionPermission.cs
- Label.cs
- XmlSignatureManifest.cs
- Attributes.cs
- CollectionDataContractAttribute.cs
- XPathParser.cs
- Char.cs
- ApplyTemplatesAction.cs
- ColumnMapVisitor.cs
- TreeNodeStyle.cs
- SelectionWordBreaker.cs
- SafeFileMappingHandle.cs
- MulticastIPAddressInformationCollection.cs
- SamlAuthorizationDecisionClaimResource.cs
- TrustLevelCollection.cs
- Int16Storage.cs
- StrokeNode.cs
- FormViewDeleteEventArgs.cs
- XmlValidatingReaderImpl.cs
- PeerNameRegistration.cs
- StringPropertyBuilder.cs
- Point.cs
- ItemList.cs
- TemplateModeChangedEventArgs.cs
- Form.cs
- SizeIndependentAnimationStorage.cs
- TableParaClient.cs
- ParentQuery.cs
- DependencyObjectProvider.cs
- DomainConstraint.cs
- FixedDSBuilder.cs
- MessageRpc.cs
- UpdateProgress.cs
- SizeAnimationBase.cs
- _SslSessionsCache.cs
- ClientTargetSection.cs
- CompiledScopeCriteria.cs
- MissingMethodException.cs
- MembershipSection.cs
- SelectionRange.cs
- DataTableReader.cs
- EntityTransaction.cs
- ColorInterpolationModeValidation.cs
- NewItemsContextMenuStrip.cs
- FileStream.cs
- RoleService.cs
- PageTheme.cs
- UnhandledExceptionEventArgs.cs
- Soap.cs
- DependencyPropertyKind.cs
- StrokeRenderer.cs
- ResourceDisplayNameAttribute.cs
- VarRefManager.cs