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
- ResourceDictionary.cs
- WsdlParser.cs
- ScriptDescriptor.cs
- AdPostCacheSubstitution.cs
- ThemeDirectoryCompiler.cs
- HtmlUtf8RawTextWriter.cs
- FeatureManager.cs
- OracleInfoMessageEventArgs.cs
- RawStylusInputReport.cs
- BitSet.cs
- WebPartRestoreVerb.cs
- MaskedTextBox.cs
- GridViewSortEventArgs.cs
- HttpCachePolicyElement.cs
- CommandBindingCollection.cs
- HMACSHA256.cs
- ContextCorrelationInitializer.cs
- CapabilitiesRule.cs
- ProgressChangedEventArgs.cs
- MouseBinding.cs
- WebHttpSecurity.cs
- DateTimeOffsetAdapter.cs
- SSmlParser.cs
- SubtreeProcessor.cs
- NameValueFileSectionHandler.cs
- DrawingAttributesDefaultValueFactory.cs
- TreeNodeMouseHoverEvent.cs
- NegotiateStream.cs
- HttpRawResponse.cs
- QueryContinueDragEventArgs.cs
- SerializationBinder.cs
- DataColumn.cs
- SerializationFieldInfo.cs
- GridEntryCollection.cs
- ToolStripItemClickedEventArgs.cs
- FixedSOMGroup.cs
- XPathAxisIterator.cs
- Command.cs
- VirtualDirectoryMapping.cs
- HttpWebRequestElement.cs
- CalculatedColumn.cs
- CollectionBuilder.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CommandHelpers.cs
- DataStreams.cs
- _emptywebproxy.cs
- CalendarDay.cs
- BufferAllocator.cs
- PenThreadPool.cs
- TagPrefixCollection.cs
- ContainerUIElement3D.cs
- COSERVERINFO.cs
- WrappingXamlSchemaContext.cs
- SqlDataSource.cs
- SQLString.cs
- InkPresenterAutomationPeer.cs
- GridView.cs
- ThreadStartException.cs
- RemotingConfigParser.cs
- NewArrayExpression.cs
- PropertyGridView.cs
- SystemIPInterfaceStatistics.cs
- ResXBuildProvider.cs
- EventlogProvider.cs
- xamlnodes.cs
- ReadOnlyTernaryTree.cs
- CollectionBase.cs
- Token.cs
- Literal.cs
- _FtpControlStream.cs
- StringPropertyBuilder.cs
- AdornerDecorator.cs
- TreeIterator.cs
- MultipartContentParser.cs
- Int32Collection.cs
- RowVisual.cs
- Logging.cs
- ClientRuntimeConfig.cs
- DataGridViewSelectedRowCollection.cs
- Parameter.cs
- EmptyEnumerator.cs
- XsdBuildProvider.cs
- ScriptReferenceEventArgs.cs
- InterleavedZipPartStream.cs
- WebScriptServiceHost.cs
- DesignerRegion.cs
- SecurityHelper.cs
- HtmlInputButton.cs
- InternalBufferManager.cs
- JapaneseLunisolarCalendar.cs
- Delegate.cs
- XmlnsDefinitionAttribute.cs
- Transform3DGroup.cs
- PreviewPrintController.cs
- HttpModuleCollection.cs
- SerialPort.cs
- FileAccessException.cs
- MessageBox.cs
- SqlNodeAnnotation.cs
- ClientSponsor.cs