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
- _MultipleConnectAsync.cs
- ForeignKeyConstraint.cs
- CompositeControl.cs
- SqlProfileProvider.cs
- XmlWrappingWriter.cs
- ValidatorUtils.cs
- XmlElementAttribute.cs
- TextBoxRenderer.cs
- ItemsPanelTemplate.cs
- PixelShader.cs
- Nullable.cs
- ElementNotAvailableException.cs
- Win32Exception.cs
- Converter.cs
- RequestCache.cs
- StretchValidation.cs
- InputLanguage.cs
- RelationshipFixer.cs
- ChameleonKey.cs
- ProcessInfo.cs
- BoundField.cs
- FileRecordSequenceCompletedAsyncResult.cs
- RectKeyFrameCollection.cs
- AutoGeneratedFieldProperties.cs
- EncryptedData.cs
- EdmConstants.cs
- ZipIOLocalFileDataDescriptor.cs
- ConfigPathUtility.cs
- AccessDataSourceView.cs
- RootProfilePropertySettingsCollection.cs
- RadioButton.cs
- BooleanSwitch.cs
- InternalsVisibleToAttribute.cs
- PageStatePersister.cs
- TypeDescriptionProviderAttribute.cs
- RawKeyboardInputReport.cs
- DateBoldEvent.cs
- CodeParameterDeclarationExpression.cs
- MatrixTransform.cs
- FixedSOMImage.cs
- safesecurityhelperavalon.cs
- SamlAuthenticationStatement.cs
- InlineObject.cs
- MultiView.cs
- PropertyDescriptorGridEntry.cs
- QueryCacheKey.cs
- InputScope.cs
- FirewallWrapper.cs
- ScriptControlManager.cs
- PowerEase.cs
- XmlSchemaObject.cs
- httpapplicationstate.cs
- QueryPageSettingsEventArgs.cs
- X509CertificateValidationMode.cs
- TypeUsage.cs
- WCFModelStrings.Designer.cs
- WebPermission.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- NumberSubstitution.cs
- Metadata.cs
- ValueCollectionParameterReader.cs
- SRDisplayNameAttribute.cs
- EventSinkHelperWriter.cs
- FactoryMaker.cs
- SafeHGlobalHandleCritical.cs
- SolidColorBrush.cs
- PublishLicense.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- ClientApiGenerator.cs
- FormsAuthenticationConfiguration.cs
- Misc.cs
- _ConnectionGroup.cs
- TextProviderWrapper.cs
- SqlResolver.cs
- LinqDataSourceSelectEventArgs.cs
- WebExceptionStatus.cs
- XamlWrappingReader.cs
- FormatConvertedBitmap.cs
- ScaleTransform.cs
- AddInToken.cs
- SplayTreeNode.cs
- LoginStatusDesigner.cs
- SendMailErrorEventArgs.cs
- CacheAxisQuery.cs
- QuotedPrintableStream.cs
- ImageMapEventArgs.cs
- TextParagraphCache.cs
- HitTestWithPointDrawingContextWalker.cs
- ContentPosition.cs
- ContainerParagraph.cs
- GifBitmapDecoder.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ShaderEffect.cs
- ArcSegment.cs
- SoundPlayerAction.cs
- Operator.cs
- DependencySource.cs
- SqlCachedBuffer.cs
- TypeConverter.cs
- XmlNode.cs