Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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() { } } } // 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
- DataGridItemCollection.cs
- EmissiveMaterial.cs
- HtmlInputReset.cs
- DecoratedNameAttribute.cs
- TableItemPattern.cs
- TextReader.cs
- FileEnumerator.cs
- InteropAutomationProvider.cs
- SchemaConstraints.cs
- StringFormat.cs
- CollectionViewGroup.cs
- ApplicationException.cs
- ExpressionBuilderCollection.cs
- ScalarType.cs
- FormatterConverter.cs
- BindStream.cs
- DocumentXPathNavigator.cs
- XPathNavigatorKeyComparer.cs
- EdmComplexPropertyAttribute.cs
- WindowsAuthenticationModule.cs
- WindowsAuthenticationEventArgs.cs
- AnnotationComponentManager.cs
- QueryConverter.cs
- PageContent.cs
- MenuScrollingVisibilityConverter.cs
- DateBoldEvent.cs
- PresentationSource.cs
- MemberDescriptor.cs
- DataContractSet.cs
- DetailsViewCommandEventArgs.cs
- CodeAttributeDeclaration.cs
- WindowsTooltip.cs
- Stream.cs
- WebServiceErrorEvent.cs
- CodeGeneratorOptions.cs
- ModelUIElement3D.cs
- InvalidPrinterException.cs
- XmlSchemaComplexContent.cs
- ActivityInstance.cs
- CultureSpecificStringDictionary.cs
- X509CertificateCollection.cs
- OracleString.cs
- Comparer.cs
- DateTimePicker.cs
- Boolean.cs
- UniformGrid.cs
- Page.cs
- FixedSOMPage.cs
- ValidationEventArgs.cs
- MulticastOption.cs
- OneOfConst.cs
- InternalTypeHelper.cs
- ActivityDesigner.cs
- BindingCompleteEventArgs.cs
- PeerOutputChannel.cs
- DbSetClause.cs
- SharedUtils.cs
- TextEditorTyping.cs
- TimeZone.cs
- WindowsStartMenu.cs
- ErrorHandlingReceiver.cs
- WorkflowInstanceAbortedRecord.cs
- MenuItemCollection.cs
- UnknownWrapper.cs
- WebPartConnectionsConfigureVerb.cs
- BoolLiteral.cs
- BehaviorEditorPart.cs
- FixedHyperLink.cs
- WindowsListViewGroup.cs
- Options.cs
- Behavior.cs
- NumberSubstitution.cs
- Compilation.cs
- XmlTextWriter.cs
- SchemaImporterExtension.cs
- Scanner.cs
- CipherData.cs
- ValidationContext.cs
- SwitchAttribute.cs
- CodeCompiler.cs
- RunInstallerAttribute.cs
- ValidatorAttribute.cs
- Models.cs
- ContentDisposition.cs
- CommandEventArgs.cs
- BamlLocalizer.cs
- LinqTreeNodeEvaluator.cs
- WebBaseEventKeyComparer.cs
- NumericUpDownAcceleration.cs
- LinkClickEvent.cs
- UnsafePeerToPeerMethods.cs
- EntityClientCacheKey.cs
- DataSourceHelper.cs
- ZipIOLocalFileDataDescriptor.cs
- LinqTreeNodeEvaluator.cs
- StorageAssociationTypeMapping.cs
- TextureBrush.cs
- Vector3DKeyFrameCollection.cs
- ListManagerBindingsCollection.cs
- XmlChildNodes.cs