Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- DataGridRow.cs
- ActivityBindForm.cs
- SqlTriggerAttribute.cs
- TableSectionStyle.cs
- ClientBuildManager.cs
- HttpUnhandledOperationInvoker.cs
- SecurityMode.cs
- TemplateControlCodeDomTreeGenerator.cs
- GlyphElement.cs
- BulletedListDesigner.cs
- TreeViewEvent.cs
- SimpleHandlerFactory.cs
- XmlHelper.cs
- OdbcStatementHandle.cs
- WpfKnownType.cs
- QueryAsyncResult.cs
- ContentTextAutomationPeer.cs
- LogArchiveSnapshot.cs
- DrawingAttributeSerializer.cs
- InputScopeManager.cs
- FileDialogCustomPlace.cs
- BulletDecorator.cs
- CodeSnippetCompileUnit.cs
- RemotingSurrogateSelector.cs
- AnnotationAuthorChangedEventArgs.cs
- ChtmlCommandAdapter.cs
- IdentitySection.cs
- BigInt.cs
- AspNetSynchronizationContext.cs
- CssStyleCollection.cs
- PrintDialogException.cs
- FormViewUpdateEventArgs.cs
- DataServiceKeyAttribute.cs
- ExpressionPrefixAttribute.cs
- TimeoutTimer.cs
- BaseParser.cs
- PtsPage.cs
- CodeAccessPermission.cs
- GestureRecognizer.cs
- SafeNativeHandle.cs
- Preprocessor.cs
- TransformedBitmap.cs
- SqlExpressionNullability.cs
- DataSourceViewSchemaConverter.cs
- MachineKeyConverter.cs
- LocalizableResourceBuilder.cs
- ServiceObjectContainer.cs
- EdmValidator.cs
- CustomAssemblyResolver.cs
- CodeChecksumPragma.cs
- FastEncoderWindow.cs
- StrokeIntersection.cs
- ArgumentException.cs
- ComponentSerializationService.cs
- CompositeTypefaceMetrics.cs
- HandleRef.cs
- Msec.cs
- CanonicalFontFamilyReference.cs
- TextSimpleMarkerProperties.cs
- EntityKey.cs
- IsolatedStorageFileStream.cs
- XPathChildIterator.cs
- AttachedPropertyMethodSelector.cs
- TableLayoutStyleCollection.cs
- NameValueFileSectionHandler.cs
- Group.cs
- XhtmlBasicControlAdapter.cs
- Helper.cs
- HtmlInputImage.cs
- AspNetPartialTrustHelpers.cs
- IgnoreDeviceFilterElementCollection.cs
- XdrBuilder.cs
- DateTimeUtil.cs
- ApplicationServiceManager.cs
- MachineKey.cs
- NameValuePermission.cs
- Parser.cs
- AppliedDeviceFiltersEditor.cs
- SafeSecurityHelper.cs
- TextEditorDragDrop.cs
- PenContexts.cs
- SerializableTypeCodeDomSerializer.cs
- X509PeerCertificateAuthenticationElement.cs
- EntityDataSourceSelectingEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- KeyNotFoundException.cs
- ApplicationDirectoryMembershipCondition.cs
- MarshalDirectiveException.cs
- CornerRadius.cs
- MethodExecutor.cs
- CssStyleCollection.cs
- RadialGradientBrush.cs
- X509CertificateValidationMode.cs
- Typeface.cs
- RunInstallerAttribute.cs
- DoubleConverter.cs
- FilterQuery.cs
- TextClipboardData.cs
- GroupBox.cs
- NativeMethods.cs