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
- WindowHideOrCloseTracker.cs
- SemanticKeyElement.cs
- PageStatePersister.cs
- GlobalizationSection.cs
- ViewBase.cs
- XmlWrappingReader.cs
- WebPartCatalogAddVerb.cs
- PolyBezierSegment.cs
- shaper.cs
- sqlser.cs
- AsyncSerializedWorker.cs
- MasterPage.cs
- PlainXmlDeserializer.cs
- EventLogPermissionEntry.cs
- IsolatedStoragePermission.cs
- BufferedReadStream.cs
- PartBasedPackageProperties.cs
- Constants.cs
- MarshalDirectiveException.cs
- CompiledQuery.cs
- DrawingState.cs
- ImageListUtils.cs
- Focus.cs
- MailAddressCollection.cs
- XmlSchemaAnnotation.cs
- autovalidator.cs
- _NetRes.cs
- UdpChannelFactory.cs
- RunWorkerCompletedEventArgs.cs
- TemplateAction.cs
- HttpConfigurationContext.cs
- TableLayoutColumnStyleCollection.cs
- PolyQuadraticBezierSegment.cs
- Button.cs
- InternalCache.cs
- ColumnCollection.cs
- StringBlob.cs
- _NestedSingleAsyncResult.cs
- TableLayoutSettingsTypeConverter.cs
- ListViewGroupCollectionEditor.cs
- TextBoxView.cs
- VarRemapper.cs
- GetCertificateRequest.cs
- OneOfElement.cs
- IfJoinedCondition.cs
- ChildTable.cs
- DPTypeDescriptorContext.cs
- CodeCastExpression.cs
- AttributeEmitter.cs
- DataGrid.cs
- DialogDivider.cs
- Point3D.cs
- Models.cs
- Material.cs
- METAHEADER.cs
- DbInsertCommandTree.cs
- RegisteredScript.cs
- LeafCellTreeNode.cs
- MessagePartDescription.cs
- HttpSocketManager.cs
- GcHandle.cs
- FontNameEditor.cs
- FontStyles.cs
- ToolStripContentPanelRenderEventArgs.cs
- validationstate.cs
- SurrogateEncoder.cs
- DataGridViewColumnCollectionEditor.cs
- OpenTypeMethods.cs
- OracleString.cs
- AdornerDecorator.cs
- UIElementParaClient.cs
- UxThemeWrapper.cs
- FieldAccessException.cs
- AnimationClock.cs
- ProtocolException.cs
- AnimationLayer.cs
- AtomParser.cs
- IndentedWriter.cs
- MeshGeometry3D.cs
- ItemCheckEvent.cs
- TextParagraphView.cs
- CollectionViewSource.cs
- UrlMappingCollection.cs
- TraceContext.cs
- HierarchicalDataSourceControl.cs
- ConfigXmlText.cs
- ClientConfigPaths.cs
- TextBoxView.cs
- WorkflowEnvironment.cs
- Selector.cs
- Console.cs
- ThreadStaticAttribute.cs
- Debug.cs
- TextEffect.cs
- Nodes.cs
- CodeTypeDelegate.cs
- XsltLoader.cs
- SurrogateEncoder.cs
- XmlSchemaCollection.cs
- SHA1Managed.cs