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
- InvalidateEvent.cs
- TextEndOfLine.cs
- TemplateBamlRecordReader.cs
- LazyTextWriterCreator.cs
- EtwTrace.cs
- XsdBuildProvider.cs
- DependencyPropertyChangedEventArgs.cs
- PublisherMembershipCondition.cs
- OutputScope.cs
- XmlComment.cs
- RangeBaseAutomationPeer.cs
- ToolStrip.cs
- RefreshPropertiesAttribute.cs
- _SslStream.cs
- ParserExtension.cs
- Matrix3D.cs
- SecurityAlgorithmSuite.cs
- MailMessageEventArgs.cs
- SchemaMapping.cs
- InstanceLockQueryResult.cs
- JavaScriptSerializer.cs
- ViewStateModeByIdAttribute.cs
- DynamicField.cs
- GACMembershipCondition.cs
- DisableDpiAwarenessAttribute.cs
- documentsequencetextcontainer.cs
- MembershipUser.cs
- ScriptMethodAttribute.cs
- OdbcHandle.cs
- Floater.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- StateElementCollection.cs
- CDSsyncETWBCLProvider.cs
- TextFindEngine.cs
- XmlQueryRuntime.cs
- DynamicRendererThreadManager.cs
- NamespaceInfo.cs
- MultidimensionalArrayItemReference.cs
- CustomError.cs
- CheckBoxList.cs
- DataControlReference.cs
- QilReference.cs
- _SingleItemRequestCache.cs
- SystemWebExtensionsSectionGroup.cs
- TemplateXamlTreeBuilder.cs
- StringFunctions.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TypeResolvingOptions.cs
- SubpageParagraph.cs
- MatrixUtil.cs
- PseudoWebRequest.cs
- UIElementPropertyUndoUnit.cs
- ResXResourceSet.cs
- String.cs
- HttpListenerPrefixCollection.cs
- ProviderCommandInfoUtils.cs
- OperandQuery.cs
- PerformanceCountersElement.cs
- Debugger.cs
- Ref.cs
- WebConfigManager.cs
- SqlTypesSchemaImporter.cs
- InteropBitmapSource.cs
- ConditionalAttribute.cs
- ZipIOCentralDirectoryFileHeader.cs
- CommonRemoteMemoryBlock.cs
- Parsers.cs
- OperationFormatStyle.cs
- activationcontext.cs
- ObjectFullSpanRewriter.cs
- HostingEnvironmentWrapper.cs
- DetailsViewRowCollection.cs
- GeometryDrawing.cs
- DataGridViewIntLinkedList.cs
- UIElement3DAutomationPeer.cs
- TextEndOfParagraph.cs
- FontUnitConverter.cs
- OperatingSystem.cs
- CorrelationManager.cs
- XmlHierarchyData.cs
- ProcessHostConfigUtils.cs
- ActivitiesCollection.cs
- WebPartMovingEventArgs.cs
- JavascriptCallbackBehaviorAttribute.cs
- VisualBrush.cs
- IPHostEntry.cs
- NumberEdit.cs
- ContractTypeNameCollection.cs
- CheckBoxField.cs
- RuleProcessor.cs
- RangeBaseAutomationPeer.cs
- AutoScrollHelper.cs
- DomainUpDown.cs
- ControlAdapter.cs
- OutputCacheModule.cs
- AxisAngleRotation3D.cs
- GPRECTF.cs
- NumberSubstitution.cs
- PolicyChain.cs
- OrderToken.cs