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
- ObjectHandle.cs
- Transform3DGroup.cs
- SchemaType.cs
- TextDecorations.cs
- ExpressionBindings.cs
- MaterialCollection.cs
- StyleConverter.cs
- SafeNativeMethods.cs
- SerializationStore.cs
- PriorityBindingExpression.cs
- DetailsViewRowCollection.cs
- SizeIndependentAnimationStorage.cs
- Rect3DConverter.cs
- Events.cs
- Rect3DValueSerializer.cs
- AsyncPostBackErrorEventArgs.cs
- ErrorProvider.cs
- SqlDesignerDataSourceView.cs
- XmlTextEncoder.cs
- ExecutedRoutedEventArgs.cs
- PnrpPermission.cs
- ComboBoxDesigner.cs
- AsymmetricSignatureFormatter.cs
- DrawListViewSubItemEventArgs.cs
- ContentPropertyAttribute.cs
- WindowsStatic.cs
- EntityStoreSchemaGenerator.cs
- SystemFonts.cs
- ClientScriptManagerWrapper.cs
- DirectoryObjectSecurity.cs
- MasterPage.cs
- StatementContext.cs
- DetailsViewUpdateEventArgs.cs
- XmlTypeAttribute.cs
- WsiProfilesElement.cs
- DataConnectionHelper.cs
- WebPartCatalogCloseVerb.cs
- DocumentPageView.cs
- LoadWorkflowAsyncResult.cs
- HyperLink.cs
- EntityWithChangeTrackerStrategy.cs
- AutoCompleteStringCollection.cs
- UnsafeNativeMethodsCLR.cs
- DynamicObject.cs
- ByteAnimation.cs
- ComponentChangedEvent.cs
- Enlistment.cs
- GlobalProxySelection.cs
- IncrementalReadDecoders.cs
- GridViewSelectEventArgs.cs
- ListViewAutomationPeer.cs
- XmlDataProvider.cs
- FileDialogCustomPlacesCollection.cs
- AttributeSetAction.cs
- ComboBoxDesigner.cs
- Parameter.cs
- OleDbRowUpdatedEvent.cs
- PluralizationServiceUtil.cs
- RbTree.cs
- C14NUtil.cs
- XsdDateTime.cs
- TextLine.cs
- UpdateCompiler.cs
- Canvas.cs
- CanonicalFormWriter.cs
- SecurityKeyIdentifier.cs
- GridViewDeletedEventArgs.cs
- ScrollChrome.cs
- DesignerActionMethodItem.cs
- BindingBase.cs
- MaskedTextBox.cs
- OdbcConnection.cs
- GreaterThanOrEqual.cs
- GenerateHelper.cs
- ReadOnlyObservableCollection.cs
- WebResponse.cs
- ItemsControl.cs
- WindowsListViewSubItem.cs
- _SpnDictionary.cs
- PersistenceTypeAttribute.cs
- M3DUtil.cs
- ObjectStateEntryDbDataRecord.cs
- ChannelServices.cs
- MessagePartDescription.cs
- AsymmetricKeyExchangeDeformatter.cs
- TargetControlTypeCache.cs
- PrivilegedConfigurationManager.cs
- DataTableCollection.cs
- Double.cs
- EncodingDataItem.cs
- QueryCorrelationInitializer.cs
- CallContext.cs
- Fault.cs
- WebConvert.cs
- Padding.cs
- ItemAutomationPeer.cs
- _BaseOverlappedAsyncResult.cs
- XLinq.cs
- ExceptionTrace.cs
- TextEncodedRawTextWriter.cs