Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Serialization / SerializeAbsoluteContext.cs / 1 / SerializeAbsoluteContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System; using System.CodeDom; ////// /// The ComponentSerializationService supports "absolute" serialization, where instead of just /// serializing values that differ from an object's default values, all values are /// serialized in such a way as to be able to reset values to their defaults for /// objects that may have already been initialized. When a component serialization service /// wishes to indicate this to CodeDomSerializer objects, it will place a /// SerializeAbsoluteContext on the context stack. The member in this context may be null, /// to indicate that all members are serialized, or a member indicating that only a /// specific member is being serialized at this time. /// public sealed class SerializeAbsoluteContext { private MemberDescriptor _member; ////// /// Creeates a new SerializeAbsoluteContext. Member can be null or omitted to indicate this context /// should be used for all members. /// public SerializeAbsoluteContext() { } ////// /// Creeates a new SerializeAbsoluteContext. Member can be null or omitted to indicate this context /// should be used for all members. /// public SerializeAbsoluteContext(MemberDescriptor member) { _member = member; } ////// /// This property returns the member this context is bound to. It may be null to /// indicate the context is bound to all members of an object. /// public MemberDescriptor Member { get { return _member; } } ////// /// Returns true if the given member should be serialized in this context. /// public bool ShouldSerialize(MemberDescriptor member) { return (_member == null || _member == member); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XD.cs
- PropertyEmitterBase.cs
- ServiceModelSecurityTokenRequirement.cs
- TypedTableBase.cs
- DataGridTextBoxColumn.cs
- FixedSOMPageElement.cs
- ListViewContainer.cs
- CurrentTimeZone.cs
- HelpKeywordAttribute.cs
- AffineTransform3D.cs
- TypedElement.cs
- ConnectionPoint.cs
- SimpleHandlerBuildProvider.cs
- SoapServerMethod.cs
- FileLogRecordEnumerator.cs
- Shape.cs
- safePerfProviderHandle.cs
- COM2ComponentEditor.cs
- diagnosticsswitches.cs
- ResponseBodyWriter.cs
- ImageSource.cs
- CodeEntryPointMethod.cs
- HostSecurityManager.cs
- ObfuscationAttribute.cs
- PowerStatus.cs
- ClientSettings.cs
- ServiceAuthorizationManager.cs
- RelatedCurrencyManager.cs
- TextPattern.cs
- TextAutomationPeer.cs
- ListItemCollection.cs
- ComponentResourceManager.cs
- RNGCryptoServiceProvider.cs
- GroupBoxRenderer.cs
- TextSelectionHelper.cs
- RawStylusActions.cs
- GregorianCalendarHelper.cs
- RichTextBox.cs
- ToolStripPanelRenderEventArgs.cs
- InvalidCommandTreeException.cs
- FilterException.cs
- GPPOINT.cs
- XamlTypeMapperSchemaContext.cs
- Assembly.cs
- XmlSerializationGeneratedCode.cs
- MetadataPropertyvalue.cs
- Enum.cs
- UnSafeCharBuffer.cs
- IsolationInterop.cs
- StringDictionary.cs
- GPPOINT.cs
- StylusPointPropertyUnit.cs
- ProtocolsSection.cs
- X500Name.cs
- NetCodeGroup.cs
- SQLInt64.cs
- TdsParserStaticMethods.cs
- TdsValueSetter.cs
- RoleServiceManager.cs
- FixedSOMPageConstructor.cs
- PackagePart.cs
- SynchronizedMessageSource.cs
- TextTreeObjectNode.cs
- MetaModel.cs
- FacetValueContainer.cs
- Underline.cs
- ProxySimple.cs
- WebControlParameterProxy.cs
- BookmarkScope.cs
- ClientRolePrincipal.cs
- ScriptControl.cs
- RoleService.cs
- ButtonColumn.cs
- xdrvalidator.cs
- CodeVariableReferenceExpression.cs
- QuaternionValueSerializer.cs
- WorkItem.cs
- HatchBrush.cs
- DesignerCommandSet.cs
- TaskScheduler.cs
- ClientRuntimeConfig.cs
- BitmapFrameEncode.cs
- WizardStepCollectionEditor.cs
- wgx_sdk_version.cs
- WebMethodAttribute.cs
- CategoryAttribute.cs
- cookieexception.cs
- ScriptDescriptor.cs
- WebPartConnectionCollection.cs
- XmlSerializerAssemblyAttribute.cs
- JoinTreeSlot.cs
- XmlDocumentViewSchema.cs
- EventMappingSettings.cs
- ChangeInterceptorAttribute.cs
- ProgressiveCrcCalculatingStream.cs
- RSAPKCS1SignatureDeformatter.cs
- HttpCapabilitiesSectionHandler.cs
- TraceHandler.cs
- ObjectDataSourceView.cs
- XmlSchemaComplexContentExtension.cs