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
- SpellCheck.cs
- SimpleTypesSurrogate.cs
- CaretElement.cs
- BrowserCapabilitiesFactoryBase.cs
- SimplePropertyEntry.cs
- AutomationPatternInfo.cs
- BCLDebug.cs
- SoapHeaders.cs
- InheritablePropertyChangeInfo.cs
- DisplayMemberTemplateSelector.cs
- DataGridCheckBoxColumn.cs
- ReadOnlyDataSourceView.cs
- ToolStripDropDownItem.cs
- PackageDigitalSignature.cs
- AuthenticationService.cs
- FullTrustAssembliesSection.cs
- BufferedStream.cs
- ImageListUtils.cs
- SchemaNamespaceManager.cs
- Matrix3D.cs
- AttributeTableBuilder.cs
- TreeChangeInfo.cs
- Point3DCollectionValueSerializer.cs
- DesignerVerb.cs
- ApplicationSecurityInfo.cs
- TcpChannelListener.cs
- DataTable.cs
- DynamicResourceExtension.cs
- ObjectConverter.cs
- Screen.cs
- DataGridViewCellStyleEditor.cs
- FilterException.cs
- NonClientArea.cs
- XmlNamedNodeMap.cs
- ObjectAnimationBase.cs
- FrameworkElementFactory.cs
- WebPartUserCapability.cs
- LambdaCompiler.Address.cs
- SerTrace.cs
- ChangeInterceptorAttribute.cs
- LineBreakRecord.cs
- GeneralTransform2DTo3D.cs
- AutoResetEvent.cs
- RuleDefinitions.cs
- ManipulationVelocities.cs
- OleDbInfoMessageEvent.cs
- QilPatternVisitor.cs
- InkCanvasSelectionAdorner.cs
- TabControlEvent.cs
- NumericExpr.cs
- EntityClassGenerator.cs
- PaperSource.cs
- DesignerActionKeyboardBehavior.cs
- UserControl.cs
- ClientRolePrincipal.cs
- SupportsEventValidationAttribute.cs
- EmulateRecognizeCompletedEventArgs.cs
- WebServiceHandlerFactory.cs
- DbDataRecord.cs
- XmlILCommand.cs
- Int32RectConverter.cs
- UnsignedPublishLicense.cs
- UrlMappingCollection.cs
- RijndaelManagedTransform.cs
- MemberRelationshipService.cs
- Helpers.cs
- FloaterBaseParaClient.cs
- PackagePart.cs
- PagedControl.cs
- WebPartConnectVerb.cs
- ImpersonateTokenRef.cs
- DeflateStream.cs
- QuadraticBezierSegment.cs
- XmlHierarchicalDataSourceView.cs
- Menu.cs
- CalendarItem.cs
- WindowsAuthenticationModule.cs
- EncoderParameters.cs
- DataGridViewCellCollection.cs
- GenericRootAutomationPeer.cs
- OdbcInfoMessageEvent.cs
- ArrayExtension.cs
- DataObjectCopyingEventArgs.cs
- DiscreteKeyFrames.cs
- _AutoWebProxyScriptHelper.cs
- Empty.cs
- Rect3DValueSerializer.cs
- EncoderExceptionFallback.cs
- DependencyPropertyHelper.cs
- DataGridViewComboBoxColumn.cs
- TextRangeEdit.cs
- CompilationLock.cs
- TextElement.cs
- WebPartConnectionsConnectVerb.cs
- PerformanceCounterPermissionEntry.cs
- OperationGenerator.cs
- SqlTypeSystemProvider.cs
- ImageMap.cs
- PackWebRequestFactory.cs
- Soap.cs