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
- SystemIPv4InterfaceProperties.cs
- XsltSettings.cs
- OutOfProcStateClientManager.cs
- CodeTypeOfExpression.cs
- List.cs
- SoapIncludeAttribute.cs
- _CommandStream.cs
- ReadOnlyNameValueCollection.cs
- ConcurrentStack.cs
- HtmlTableCellCollection.cs
- CalendarButtonAutomationPeer.cs
- RotateTransform.cs
- ApplicationSecurityInfo.cs
- XmlMemberMapping.cs
- PerformanceCounterPermissionAttribute.cs
- ReadOnlyDictionary.cs
- UnicodeEncoding.cs
- InputBuffer.cs
- Converter.cs
- ScriptServiceAttribute.cs
- StylusPointCollection.cs
- VisualBrush.cs
- __Filters.cs
- XmlBindingWorker.cs
- BitmapFrame.cs
- DocumentOrderComparer.cs
- XmlSchema.cs
- HtmlProps.cs
- RegistryConfigurationProvider.cs
- DisableDpiAwarenessAttribute.cs
- CompiledIdentityConstraint.cs
- WindowsListViewScroll.cs
- QueryGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- XsdCachingReader.cs
- DrawingContextDrawingContextWalker.cs
- InvalidDataException.cs
- XmlEventCache.cs
- KerberosReceiverSecurityToken.cs
- InputManager.cs
- HashStream.cs
- CombinedGeometry.cs
- Matrix3DConverter.cs
- TextServicesDisplayAttribute.cs
- HitTestParameters.cs
- KeyEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- DefaultHttpHandler.cs
- TransactionManager.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ComplexObject.cs
- BitmapFrame.cs
- TcpAppDomainProtocolHandler.cs
- GroupBoxAutomationPeer.cs
- safePerfProviderHandle.cs
- StorageComplexTypeMapping.cs
- AuthenticatedStream.cs
- EmbeddedMailObjectsCollection.cs
- SystemIPInterfaceProperties.cs
- AssociatedControlConverter.cs
- IdnElement.cs
- XPathAncestorIterator.cs
- IndexOutOfRangeException.cs
- PersonalizationProvider.cs
- QilName.cs
- ToolStripItemImageRenderEventArgs.cs
- BaseTransportHeaders.cs
- ListSortDescription.cs
- TextBoxView.cs
- XmlEnumAttribute.cs
- CompilationPass2Task.cs
- Validator.cs
- EventMetadata.cs
- VirtualDirectoryMapping.cs
- ValueOfAction.cs
- CngUIPolicy.cs
- AttachedAnnotationChangedEventArgs.cs
- ResourceKey.cs
- MultilineStringConverter.cs
- WebPartEditorApplyVerb.cs
- Drawing.cs
- AsyncSerializedWorker.cs
- RefreshEventArgs.cs
- StringExpressionSet.cs
- TemplateBuilder.cs
- DataContractSerializer.cs
- BaseConfigurationRecord.cs
- DataBoundControl.cs
- ValueHandle.cs
- TreeView.cs
- EncoderNLS.cs
- Base64Decoder.cs
- CngKeyCreationParameters.cs
- ToolStripDropDownDesigner.cs
- RuntimeCompatibilityAttribute.cs
- SqlParameterCollection.cs
- HtmlDocument.cs
- WebPartActionVerb.cs
- EntityProviderServices.cs
- XmlBaseWriter.cs