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
- XmlSchemaAnyAttribute.cs
- Material.cs
- HttpDigestClientElement.cs
- MimePart.cs
- ServiceReference.cs
- ThreadStateException.cs
- WebPartHelpVerb.cs
- PasswordPropertyTextAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- XmlQueryRuntime.cs
- TransactionChannelFaultConverter.cs
- QueryOutputWriter.cs
- FileVersionInfo.cs
- SafeFileMapViewHandle.cs
- HostingEnvironmentException.cs
- ModifierKeysConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- DataControlFieldHeaderCell.cs
- AxisAngleRotation3D.cs
- ListViewGroupConverter.cs
- SID.cs
- ToolStripItemClickedEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- SlotInfo.cs
- HitTestParameters3D.cs
- UIPropertyMetadata.cs
- SoapSchemaExporter.cs
- OperationContractGenerationContext.cs
- SqlVisitor.cs
- CheckedListBox.cs
- InstanceDataCollection.cs
- ResourceDescriptionAttribute.cs
- Span.cs
- FixedSOMElement.cs
- HtmlContainerControl.cs
- ReadOnlyPropertyMetadata.cs
- Matrix.cs
- FixedNode.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- WebRequest.cs
- COM2Properties.cs
- Point3DCollectionValueSerializer.cs
- TemplateField.cs
- DataGridItem.cs
- WeakReference.cs
- ColumnBinding.cs
- RightsManagementEncryptedStream.cs
- HealthMonitoringSection.cs
- HtmlInputText.cs
- SqlPersonalizationProvider.cs
- SqlDataSourceCache.cs
- OdbcConnectionString.cs
- DesignSurfaceCollection.cs
- ParenthesizePropertyNameAttribute.cs
- MemberInfoSerializationHolder.cs
- MetadataArtifactLoaderComposite.cs
- FrameworkTemplate.cs
- LinqDataView.cs
- CompilerInfo.cs
- ViewEventArgs.cs
- hresults.cs
- ToolBarButtonClickEvent.cs
- UnmanagedMarshal.cs
- PaperSource.cs
- TableAutomationPeer.cs
- TextTreeTextNode.cs
- ToolStripGrip.cs
- ResourceType.cs
- TransformerInfoCollection.cs
- GeometryModel3D.cs
- IntSecurity.cs
- DataGridViewRowStateChangedEventArgs.cs
- XmlHierarchyData.cs
- ApplicationException.cs
- BooleanProjectedSlot.cs
- RangeContentEnumerator.cs
- xdrvalidator.cs
- AmbientLight.cs
- DescendantBaseQuery.cs
- SQLDoubleStorage.cs
- StyleHelper.cs
- RecognizeCompletedEventArgs.cs
- FileNotFoundException.cs
- Exceptions.cs
- SafeCoTaskMem.cs
- isolationinterop.cs
- CorrelationResolver.cs
- ReverseInheritProperty.cs
- HtmlDocument.cs
- DropDownList.cs
- HwndSource.cs
- ListView.cs
- NetSectionGroup.cs
- XmlDataSourceView.cs
- FontStretchConverter.cs
- GrammarBuilderWildcard.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SoapExtensionTypeElementCollection.cs
- DCSafeHandle.cs
- DataControlExtensions.cs