Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NonSerializedAttribute.cs / 1305376 / 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() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeNode.cs
- Point3DAnimation.cs
- ClientBuildManager.cs
- XmlTextWriter.cs
- PopupControlService.cs
- FrameAutomationPeer.cs
- IOException.cs
- XmlSchemaParticle.cs
- CodeMemberProperty.cs
- DesignParameter.cs
- FunctionImportMapping.cs
- IteratorFilter.cs
- ToolStripDropDownMenu.cs
- Size3D.cs
- ProcessModule.cs
- CodeSnippetStatement.cs
- SrgsText.cs
- CubicEase.cs
- TimeSpanConverter.cs
- wgx_commands.cs
- SoapObjectWriter.cs
- DefaultValidator.cs
- SendAgentStatusRequest.cs
- FontSourceCollection.cs
- TransactionScope.cs
- SqlBinder.cs
- GeneratedCodeAttribute.cs
- WorkflowNamespace.cs
- TdsParameterSetter.cs
- ISFClipboardData.cs
- FastPropertyAccessor.cs
- StreamWithDictionary.cs
- ItemDragEvent.cs
- FormViewUpdatedEventArgs.cs
- SettingsPropertyValueCollection.cs
- PropVariant.cs
- OleCmdHelper.cs
- InputScope.cs
- HashCryptoHandle.cs
- AccessKeyManager.cs
- WorkflowDefinitionDispenser.cs
- ComEventsInfo.cs
- DispatcherHooks.cs
- StringWriter.cs
- ByteRangeDownloader.cs
- RepeatInfo.cs
- DataControlFieldCollection.cs
- Executor.cs
- WebBrowserProgressChangedEventHandler.cs
- WebPartConnectionsCloseVerb.cs
- AggregateNode.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WebPartEditorApplyVerb.cs
- IndentTextWriter.cs
- CodeConditionStatement.cs
- SafeFileMappingHandle.cs
- FileClassifier.cs
- SystemSounds.cs
- LinqDataSourceUpdateEventArgs.cs
- UIElementCollection.cs
- ErrorFormatter.cs
- WaitForChangedResult.cs
- NamespaceMapping.cs
- RegexEditorDialog.cs
- base64Transforms.cs
- SafeEventLogWriteHandle.cs
- DeclaredTypeElementCollection.cs
- StrongName.cs
- AuthenticatedStream.cs
- ModuleBuilder.cs
- XamlFxTrace.cs
- Variant.cs
- ManagementQuery.cs
- SqlClientFactory.cs
- CqlLexer.cs
- ParameterSubsegment.cs
- AlphabeticalEnumConverter.cs
- CurrentChangingEventManager.cs
- FixedSOMTableRow.cs
- TemplateColumn.cs
- NavigationEventArgs.cs
- login.cs
- PermissionRequestEvidence.cs
- FlowchartDesignerCommands.cs
- HostingEnvironmentException.cs
- TypeSystemProvider.cs
- NavigationService.cs
- ToolTipService.cs
- SqlGenericUtil.cs
- StructuredTypeEmitter.cs
- DetectEofStream.cs
- AudioException.cs
- TraceSwitch.cs
- XmlStreamStore.cs
- WSHttpTransportSecurityElement.cs
- StringPropertyBuilder.cs
- HtmlElementCollection.cs
- MembershipPasswordException.cs
- Composition.cs
- DbProviderConfigurationHandler.cs