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
- TypographyProperties.cs
- SessionEndingCancelEventArgs.cs
- LoadMessageLogger.cs
- CatalogZone.cs
- TransformValueSerializer.cs
- MatrixTransform.cs
- SafeArrayTypeMismatchException.cs
- TextRangeProviderWrapper.cs
- _AutoWebProxyScriptHelper.cs
- log.cs
- TextChangedEventArgs.cs
- DataGridTextBox.cs
- CodeBlockBuilder.cs
- InstanceNotReadyException.cs
- SyncMethodInvoker.cs
- ServiceOperationListItem.cs
- DataControlPagerLinkButton.cs
- TypeUnloadedException.cs
- AccessDataSourceDesigner.cs
- SqlResolver.cs
- CodeMemberEvent.cs
- ComplexType.cs
- SystemException.cs
- SmiXetterAccessMap.cs
- RegexNode.cs
- EDesignUtil.cs
- DataControlFieldHeaderCell.cs
- Variable.cs
- OdbcConnectionStringbuilder.cs
- SoapMessage.cs
- RequestCachingSection.cs
- NTAccount.cs
- AssertUtility.cs
- Mappings.cs
- InvokeHandlers.cs
- TreeNodeCollectionEditorDialog.cs
- StrokeCollection.cs
- BufferBuilder.cs
- InstanceCreationEditor.cs
- DeviceContexts.cs
- ItemList.cs
- FrameSecurityDescriptor.cs
- UIElement3DAutomationPeer.cs
- DataGridViewDataErrorEventArgs.cs
- TextMarkerSource.cs
- SHA256Cng.cs
- DesignerDataSourceView.cs
- ADMembershipUser.cs
- HitTestParameters.cs
- ListViewGroupConverter.cs
- GACIdentityPermission.cs
- RegexTree.cs
- BinaryConverter.cs
- NamespaceInfo.cs
- AttributeQuery.cs
- sqlnorm.cs
- StaticExtension.cs
- AjaxFrameworkAssemblyAttribute.cs
- BuildResult.cs
- MetadataImporter.cs
- MsmqIntegrationReceiveParameters.cs
- BitmapEffectvisualstate.cs
- NameValuePair.cs
- Tracking.cs
- SmiEventSink.cs
- EditorZone.cs
- ExpressionBinding.cs
- LazyTextWriterCreator.cs
- UnsettableComboBox.cs
- UnionExpr.cs
- CopyNodeSetAction.cs
- PublisherIdentityPermission.cs
- ProfileModule.cs
- CompareValidator.cs
- WrappedIUnknown.cs
- UniqueIdentifierService.cs
- WebPartTransformerCollection.cs
- datacache.cs
- Activity.cs
- SiteMapDataSource.cs
- ObjectViewFactory.cs
- PeerToPeerException.cs
- WinEventQueueItem.cs
- FileEnumerator.cs
- CopyEncoder.cs
- PageContentAsyncResult.cs
- EndEvent.cs
- DataSourceXmlElementAttribute.cs
- WebPartRestoreVerb.cs
- TrackingMemoryStream.cs
- TextContainerChangedEventArgs.cs
- MachineKeySection.cs
- ColorMatrix.cs
- WeakReferenceEnumerator.cs
- URLString.cs
- AssemblyFilter.cs
- RoutedEventArgs.cs
- RegexParser.cs
- X509WindowsSecurityToken.cs
- BitSet.cs