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
- AssemblyBuilder.cs
- AnnotationResourceCollection.cs
- OdbcRowUpdatingEvent.cs
- SqlUtils.cs
- ActivityFunc.cs
- XmlSchemaAttributeGroup.cs
- ImageMapEventArgs.cs
- FlowDocumentView.cs
- WmpBitmapDecoder.cs
- VarRemapper.cs
- ColumnBinding.cs
- PropertySourceInfo.cs
- ViewKeyConstraint.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- ToolboxItem.cs
- ConfigurationPropertyAttribute.cs
- CodeTypeMemberCollection.cs
- ZipIOExtraFieldZip64Element.cs
- ThousandthOfEmRealPoints.cs
- WebPartConnectionsCloseVerb.cs
- ClientApiGenerator.cs
- XamlInterfaces.cs
- GradientBrush.cs
- _FtpDataStream.cs
- Point3DAnimation.cs
- ApplicationInfo.cs
- ColorInterpolationModeValidation.cs
- ArglessEventHandlerProxy.cs
- Missing.cs
- Crypto.cs
- ToolStripDropDown.cs
- MessageDroppedTraceRecord.cs
- MiniParameterInfo.cs
- DataGridViewHeaderCell.cs
- FixUpCollection.cs
- MembershipPasswordException.cs
- WizardStepBase.cs
- Shape.cs
- ExtendedPropertyDescriptor.cs
- AxHost.cs
- ConfigDefinitionUpdates.cs
- WindowsIdentity.cs
- loginstatus.cs
- ArcSegment.cs
- WeakReferenceList.cs
- EventPropertyMap.cs
- CatalogPartCollection.cs
- ThreadInterruptedException.cs
- DependencyProperty.cs
- DataKeyCollection.cs
- SortDescriptionCollection.cs
- HtmlControlAdapter.cs
- FilterQueryOptionExpression.cs
- ValidationErrorCollection.cs
- ChainOfResponsibility.cs
- DataRelationPropertyDescriptor.cs
- WaitHandleCannotBeOpenedException.cs
- HybridWebProxyFinder.cs
- GridEntry.cs
- TargetInvocationException.cs
- CommandEventArgs.cs
- AuthenticationModuleElement.cs
- ValidationEventArgs.cs
- DataGridViewColumnConverter.cs
- MSAAEventDispatcher.cs
- SrgsElementFactory.cs
- InputReferenceExpression.cs
- StreamGeometryContext.cs
- PriorityQueue.cs
- DataRelation.cs
- VirtualDirectoryMappingCollection.cs
- EventLevel.cs
- AssemblyName.cs
- TextServicesCompartment.cs
- AbandonedMutexException.cs
- Normalization.cs
- ActivityExecutor.cs
- XmlReturnWriter.cs
- WebRequest.cs
- PtsHost.cs
- RotateTransform.cs
- ExpressionEditorAttribute.cs
- SessionParameter.cs
- ThreadStaticAttribute.cs
- ActivityTrace.cs
- DescriptionCreator.cs
- FixedSOMTextRun.cs
- TdsParameterSetter.cs
- DragDrop.cs
- LinqDataSourceView.cs
- XamlToRtfWriter.cs
- ProcessModelInfo.cs
- DispatcherSynchronizationContext.cs
- safesecurityhelperavalon.cs
- XmlText.cs
- BuilderPropertyEntry.cs
- _AutoWebProxyScriptWrapper.cs
- XmlMtomReader.cs
- RelatedCurrencyManager.cs
- StateItem.cs