Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MergeLocalizationDirectives.cs
- MetadataSerializer.cs
- FontStretch.cs
- FormViewInsertedEventArgs.cs
- _Semaphore.cs
- Tracking.cs
- DefaultProfileManager.cs
- SelectionUIService.cs
- FontUnitConverter.cs
- TableRowCollection.cs
- XamlReader.cs
- RootBrowserWindow.cs
- DeflateEmulationStream.cs
- HttpContextServiceHost.cs
- BasicCellRelation.cs
- AssemblyFilter.cs
- ListChangedEventArgs.cs
- WebResourceAttribute.cs
- OperationResponse.cs
- AutoResizedEvent.cs
- PersonalizableTypeEntry.cs
- CompositionAdorner.cs
- clipboard.cs
- InputBinder.cs
- Task.cs
- DesignerHost.cs
- BlobPersonalizationState.cs
- InvokeHandlers.cs
- UserControl.cs
- RightsManagementEncryptionTransform.cs
- XhtmlBasicTextViewAdapter.cs
- RequestCachePolicyConverter.cs
- DetailsViewUpdatedEventArgs.cs
- XmlCustomFormatter.cs
- DesigntimeLicenseContextSerializer.cs
- CategoryValueConverter.cs
- SQLByteStorage.cs
- SQLBoolean.cs
- IPeerNeighbor.cs
- BindToObject.cs
- WebPartMinimizeVerb.cs
- BitmapData.cs
- GPRECT.cs
- Regex.cs
- HiddenFieldPageStatePersister.cs
- ControlValuePropertyAttribute.cs
- StrongNameKeyPair.cs
- ListViewDataItem.cs
- QuarticEase.cs
- TableItemProviderWrapper.cs
- ProviderMetadata.cs
- ResourceKey.cs
- SQLString.cs
- ObservableCollectionDefaultValueFactory.cs
- OneOfTypeConst.cs
- ISFTagAndGuidCache.cs
- SoapExtensionTypeElement.cs
- ExpandCollapseProviderWrapper.cs
- XPathDescendantIterator.cs
- PageThemeCodeDomTreeGenerator.cs
- DataPointer.cs
- BinaryMessageEncodingBindingElement.cs
- TheQuery.cs
- DataControlField.cs
- Drawing.cs
- InvariantComparer.cs
- CalendarBlackoutDatesCollection.cs
- ObjectRef.cs
- PersistenceTypeAttribute.cs
- Vector3D.cs
- SmiTypedGetterSetter.cs
- HttpCapabilitiesSectionHandler.cs
- DelayedRegex.cs
- Int16Storage.cs
- ProxyGenerationError.cs
- Win32Native.cs
- Control.cs
- NamedElement.cs
- OdbcException.cs
- DataSourceCollectionBase.cs
- InvalidCastException.cs
- WindowsRichEdit.cs
- MethodRental.cs
- Point3D.cs
- QueryResults.cs
- DocumentOrderComparer.cs
- Maps.cs
- ClientScriptManager.cs
- LinqDataView.cs
- HtmlEncodedRawTextWriter.cs
- BamlLocalizabilityResolver.cs
- HMACMD5.cs
- LayoutManager.cs
- WindowsListViewItemCheckBox.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- RemoteWebConfigurationHost.cs
- OraclePermission.cs
- ConsoleTraceListener.cs
- ProfilePropertyMetadata.cs
- EventlogProvider.cs