Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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() { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- dbenumerator.cs
- RectKeyFrameCollection.cs
- XmlUTF8TextReader.cs
- Win32SafeHandles.cs
- EncoderNLS.cs
- Math.cs
- PrinterUnitConvert.cs
- ActivityUtilities.cs
- CalendarDateChangedEventArgs.cs
- AutoFocusStyle.xaml.cs
- Enlistment.cs
- DataPagerField.cs
- InheritanceService.cs
- ProfileBuildProvider.cs
- ControlType.cs
- SHA1Managed.cs
- Window.cs
- XmlCharType.cs
- RijndaelManaged.cs
- KeyNameIdentifierClause.cs
- PolicyException.cs
- CodeThrowExceptionStatement.cs
- HierarchicalDataSourceControl.cs
- TokenizerHelper.cs
- DesignerDeviceConfig.cs
- FormViewCommandEventArgs.cs
- InternalDuplexBindingElement.cs
- TableParagraph.cs
- DataListGeneralPage.cs
- hwndwrapper.cs
- OleTxTransaction.cs
- DocumentApplicationDocumentViewer.cs
- ComponentDispatcherThread.cs
- DefaultAsyncDataDispatcher.cs
- EmbeddedObject.cs
- CompositeDesignerAccessibleObject.cs
- BitmapScalingModeValidation.cs
- HasCopySemanticsAttribute.cs
- PrintPreviewGraphics.cs
- prefixendpointaddressmessagefilter.cs
- MatrixAnimationUsingPath.cs
- ActiveDocumentEvent.cs
- TableRow.cs
- ApplicationFileParser.cs
- MembershipSection.cs
- StateMachineWorkflowDesigner.cs
- RegexFCD.cs
- WebBodyFormatMessageProperty.cs
- StyleHelper.cs
- FragmentQuery.cs
- CodeAttributeArgument.cs
- ConstraintConverter.cs
- GeneralTransform3DGroup.cs
- SignatureConfirmations.cs
- EditorPartCollection.cs
- AccessibilityHelperForVista.cs
- BindingMAnagerBase.cs
- PtsHelper.cs
- AdjustableArrowCap.cs
- RedistVersionInfo.cs
- BamlRecordHelper.cs
- SafeFileMappingHandle.cs
- ToolStripInSituService.cs
- UpdateCommand.cs
- SubpageParagraph.cs
- QuaternionAnimation.cs
- CodeDOMUtility.cs
- loginstatus.cs
- ContextDataSourceContextData.cs
- COSERVERINFO.cs
- TaskHelper.cs
- XPathSelfQuery.cs
- MethodExpr.cs
- InstancePersistenceContext.cs
- XmlTextReaderImplHelpers.cs
- FileBasedResourceGroveler.cs
- TextServicesCompartmentEventSink.cs
- PerformanceCounterCategory.cs
- EmptyStringExpandableObjectConverter.cs
- RNGCryptoServiceProvider.cs
- EdmItemError.cs
- DatagramAdapter.cs
- QuaternionAnimation.cs
- ServiceReference.cs
- XmlExtensionFunction.cs
- ValidationService.cs
- QueryBranchOp.cs
- FormViewCommandEventArgs.cs
- ListViewAutomationPeer.cs
- PointLightBase.cs
- PrintPreviewDialog.cs
- DbConnectionOptions.cs
- HideDisabledControlAdapter.cs
- glyphs.cs
- ZipIORawDataFileBlock.cs
- SmiContext.cs
- TextDecoration.cs
- MissingSatelliteAssemblyException.cs
- WorkflowEventArgs.cs
- HttpContext.cs