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
- AppDomainCompilerProxy.cs
- FastPropertyAccessor.cs
- KeyedCollection.cs
- SR.cs
- WaitForChangedResult.cs
- log.cs
- ResourceReader.cs
- UrlMappingsModule.cs
- ModifiableIteratorCollection.cs
- FlowDocumentReader.cs
- TextTreeRootTextBlock.cs
- XmlSchemaIdentityConstraint.cs
- ContainerSelectorGlyph.cs
- NameScopePropertyAttribute.cs
- GlobalAllocSafeHandle.cs
- LocatorManager.cs
- LinqDataSourceStatusEventArgs.cs
- Visual3D.cs
- DynamicResourceExtension.cs
- Condition.cs
- GridViewColumn.cs
- ProgressBar.cs
- _Connection.cs
- SerialPinChanges.cs
- SafeNativeMethodsOther.cs
- RadioButtonBaseAdapter.cs
- DataGridViewUtilities.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ToolStripControlHost.cs
- TextEncodedRawTextWriter.cs
- Instrumentation.cs
- EnumBuilder.cs
- DelayLoadType.cs
- GroupedContextMenuStrip.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Line.cs
- OracleBoolean.cs
- DiscoveryClient.cs
- ContentElementAutomationPeer.cs
- DataServiceRequestException.cs
- DrawingBrush.cs
- CodeNamespaceImportCollection.cs
- NavigationWindowAutomationPeer.cs
- KeyboardEventArgs.cs
- ProxyGenerator.cs
- DispatcherSynchronizationContext.cs
- FontWeights.cs
- XhtmlBasicControlAdapter.cs
- ImageConverter.cs
- UserControl.cs
- DataSourceListEditor.cs
- RequestNavigateEventArgs.cs
- ListViewSortEventArgs.cs
- WrappingXamlSchemaContext.cs
- CLRBindingWorker.cs
- WebPartAddingEventArgs.cs
- BamlRecords.cs
- SQLChars.cs
- COM2ExtendedTypeConverter.cs
- PersonalizationStateQuery.cs
- RegularExpressionValidator.cs
- XmlUrlResolver.cs
- WebConfigurationManager.cs
- RegexCode.cs
- WhitespaceRule.cs
- CodeSubDirectoriesCollection.cs
- ISAPIRuntime.cs
- WebPartConnectionsEventArgs.cs
- MessageParameterAttribute.cs
- CacheRequest.cs
- OdbcConnectionHandle.cs
- FormClosedEvent.cs
- StrongTypingException.cs
- StorageFunctionMapping.cs
- StaticFileHandler.cs
- ToolStripScrollButton.cs
- InputBinder.cs
- UrlAuthFailedErrorFormatter.cs
- TextCompositionManager.cs
- SourceFileInfo.cs
- RenamedEventArgs.cs
- TabRenderer.cs
- followingsibling.cs
- Camera.cs
- SafeProcessHandle.cs
- _ShellExpression.cs
- InvalidWMPVersionException.cs
- MarkupExtensionParser.cs
- ReadOnlyDictionary.cs
- CompensatableSequenceActivity.cs
- BaseValidatorDesigner.cs
- SrgsElementList.cs
- RenderDataDrawingContext.cs
- DynamicRenderer.cs
- NullableIntSumAggregationOperator.cs
- AccessText.cs
- GridViewDeleteEventArgs.cs
- ToolStripContainer.cs
- UrlAuthorizationModule.cs
- WebConfigurationFileMap.cs