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
- LocalFileSettingsProvider.cs
- ListViewInsertionMark.cs
- ellipse.cs
- LocalValueEnumerator.cs
- HttpPostedFile.cs
- NumberFormatInfo.cs
- WebScriptMetadataMessageEncoderFactory.cs
- BuildProviderUtils.cs
- LoginUtil.cs
- OleDbReferenceCollection.cs
- IsolatedStoragePermission.cs
- SchemaNamespaceManager.cs
- ITextView.cs
- TcpClientChannel.cs
- ComEventsInfo.cs
- XmlQualifiedName.cs
- DesignBindingValueUIHandler.cs
- MarshalByRefObject.cs
- FaultDescriptionCollection.cs
- DashStyle.cs
- GetIsBrowserClientRequest.cs
- ConfigurationValidatorAttribute.cs
- TableCell.cs
- NativeRightsManagementAPIsStructures.cs
- MenuItemBindingCollection.cs
- BuildManagerHost.cs
- PreservationFileReader.cs
- SystemColors.cs
- TextureBrush.cs
- RangeBase.cs
- BrowserDefinitionCollection.cs
- Assert.cs
- SafeNativeMethods.cs
- JsonByteArrayDataContract.cs
- FloatUtil.cs
- RegexWriter.cs
- UIPermission.cs
- CodeMethodMap.cs
- RtfControlWordInfo.cs
- TransformGroup.cs
- XsltArgumentList.cs
- DecimalConstantAttribute.cs
- SplitContainer.cs
- SimpleTypeResolver.cs
- SpeakCompletedEventArgs.cs
- SimpleLine.cs
- _NestedSingleAsyncResult.cs
- ScriptResourceHandler.cs
- LocationInfo.cs
- Model3DGroup.cs
- String.cs
- ModulesEntry.cs
- AttributeProviderAttribute.cs
- WaitForChangedResult.cs
- SafeHandle.cs
- GridViewEditEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- InteropAutomationProvider.cs
- ExitEventArgs.cs
- TransactionFlowElement.cs
- PermissionSet.cs
- XmlSchemaDatatype.cs
- SurrogateEncoder.cs
- EventLogEntryCollection.cs
- CheckPair.cs
- VirtualPathProvider.cs
- MsmqAuthenticationMode.cs
- Operators.cs
- CmsInterop.cs
- EntityViewGenerationAttribute.cs
- HtmlProps.cs
- X509Logo.cs
- InputDevice.cs
- HighContrastHelper.cs
- ThicknessKeyFrameCollection.cs
- EncoderParameters.cs
- TrustManager.cs
- Substitution.cs
- PageHandlerFactory.cs
- TextBoxDesigner.cs
- InstanceKey.cs
- XmlAnyElementAttribute.cs
- FileChangesMonitor.cs
- BitmapInitialize.cs
- _ChunkParse.cs
- SendMailErrorEventArgs.cs
- HtmlPhoneCallAdapter.cs
- DrawingCollection.cs
- ElementUtil.cs
- JsonWriterDelegator.cs
- GridEntry.cs
- XPathNodePointer.cs
- MobileRedirect.cs
- ByteKeyFrameCollection.cs
- GeneralTransform.cs
- DashStyle.cs
- WebPartDescription.cs
- ZipIOLocalFileHeader.cs
- ColorConvertedBitmap.cs
- MsmqOutputMessage.cs