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
- WithParamAction.cs
- CodeNamespaceCollection.cs
- BlobPersonalizationState.cs
- ImageDrawing.cs
- ListDictionaryInternal.cs
- ZipFileInfoCollection.cs
- PersistenceContext.cs
- XslTransform.cs
- CompositeScriptReferenceEventArgs.cs
- XmlSchemaSet.cs
- HtmlForm.cs
- AutomationEvent.cs
- TrueReadOnlyCollection.cs
- ThreadPool.cs
- ConfigurationElement.cs
- SecurityMessageProperty.cs
- ToolboxComponentsCreatedEventArgs.cs
- ListItemCollection.cs
- OrderPreservingPipeliningSpoolingTask.cs
- BindingCollection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ContextMenuStripGroup.cs
- ClientConfigurationHost.cs
- PerformanceCounterTraceRecord.cs
- ProcessHostServerConfig.cs
- MyContact.cs
- TabItem.cs
- Stack.cs
- FormViewDeletedEventArgs.cs
- DataTableExtensions.cs
- ImageClickEventArgs.cs
- XNameConverter.cs
- login.cs
- WhitespaceRuleReader.cs
- TripleDES.cs
- ReadOnlyHierarchicalDataSource.cs
- ImageUrlEditor.cs
- FloatUtil.cs
- ToolboxComponentsCreatedEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- RangeValueProviderWrapper.cs
- PtsPage.cs
- RelativeSource.cs
- PrefixQName.cs
- PolyLineSegment.cs
- RuleSetCollection.cs
- ExpressionDumper.cs
- documentsequencetextview.cs
- DBCSCodePageEncoding.cs
- RoutedPropertyChangedEventArgs.cs
- Point3D.cs
- wgx_render.cs
- TextParaLineResult.cs
- DecimalAnimationBase.cs
- WCFServiceClientProxyGenerator.cs
- ActivationServices.cs
- ClientTargetCollection.cs
- ToolstripProfessionalRenderer.cs
- DataConnectionHelper.cs
- ProfilePropertySettingsCollection.cs
- BufferedWebEventProvider.cs
- EditorPartCollection.cs
- WebException.cs
- HandlerWithFactory.cs
- Literal.cs
- DebugView.cs
- PropertyEmitterBase.cs
- HwndSourceParameters.cs
- EntitySet.cs
- WebInvokeAttribute.cs
- PasswordBox.cs
- PartitionResolver.cs
- UserPreferenceChangedEventArgs.cs
- ListViewInsertionMark.cs
- LongTypeConverter.cs
- StdValidatorsAndConverters.cs
- ScrollChrome.cs
- LogicalMethodInfo.cs
- MouseOverProperty.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- PasswordDeriveBytes.cs
- SiteMapNodeItem.cs
- RealProxy.cs
- IpcPort.cs
- BooleanToVisibilityConverter.cs
- DesignerContextDescriptor.cs
- XmlILAnnotation.cs
- RangeValueProviderWrapper.cs
- RegexCode.cs
- PrintSchema.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlSchemaInfo.cs
- InputLanguageProfileNotifySink.cs
- XmlUtilWriter.cs
- BookmarkManager.cs
- FunctionQuery.cs
- CollectionsUtil.cs
- XmlExpressionDumper.cs
- XPathEmptyIterator.cs
- SevenBitStream.cs