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
- MeasureItemEvent.cs
- RangeContentEnumerator.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ContentFileHelper.cs
- PublishLicense.cs
- SafeThreadHandle.cs
- KeyedHashAlgorithm.cs
- CellRelation.cs
- TransformValueSerializer.cs
- ScrollableControl.cs
- SimplePropertyEntry.cs
- DES.cs
- RoleGroup.cs
- HtmlControlPersistable.cs
- FunctionCommandText.cs
- PassportAuthenticationModule.cs
- ImageList.cs
- WebPartUtil.cs
- EventLogException.cs
- Symbol.cs
- RectangleF.cs
- BitmapEffectInputData.cs
- XmlSchemaProviderAttribute.cs
- StyleCollection.cs
- ListDictionary.cs
- OdbcEnvironment.cs
- externdll.cs
- SpeechAudioFormatInfo.cs
- OdbcFactory.cs
- SqlExpander.cs
- SqlConnectionPoolProviderInfo.cs
- Graph.cs
- XmlSchemaAnnotated.cs
- UnmanagedMarshal.cs
- ZipIOCentralDirectoryBlock.cs
- DesignerVerbToolStripMenuItem.cs
- PartialCachingAttribute.cs
- ClonableStack.cs
- XmlTypeAttribute.cs
- TextServicesDisplayAttributePropertyRanges.cs
- WmlObjectListAdapter.cs
- BinaryConverter.cs
- WebPartZoneAutoFormat.cs
- WriteFileContext.cs
- XPathScanner.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- EventDriven.cs
- AutomationElementCollection.cs
- sqlser.cs
- HyperLinkField.cs
- ConfigurationManager.cs
- FormViewCommandEventArgs.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- XmlNamespaceManager.cs
- FontEditor.cs
- IIS7UserPrincipal.cs
- XmlBindingWorker.cs
- XmlMemberMapping.cs
- IntegerValidator.cs
- Char.cs
- RangeEnumerable.cs
- CollaborationHelperFunctions.cs
- TextEditorCopyPaste.cs
- HScrollProperties.cs
- SspiSafeHandles.cs
- IndicShape.cs
- IPEndPoint.cs
- SecurityContext.cs
- SystemWebSectionGroup.cs
- UIElementParaClient.cs
- UriSchemeKeyedCollection.cs
- HtmlGenericControl.cs
- Light.cs
- CodeDelegateInvokeExpression.cs
- GetPageNumberCompletedEventArgs.cs
- WpfSharedBamlSchemaContext.cs
- URLString.cs
- ItemsPresenter.cs
- Stroke.cs
- Int64Storage.cs
- DocumentXPathNavigator.cs
- ListParagraph.cs
- clipboard.cs
- SettingsProviderCollection.cs
- ClientSponsor.cs
- WebPartUserCapability.cs
- LayoutUtils.cs
- ProviderConnectionPointCollection.cs
- CharacterString.cs
- StreamUpgradeAcceptor.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CodeEventReferenceExpression.cs
- DoubleAnimationBase.cs
- EventSourceCreationData.cs
- XomlCompiler.cs
- CompoundFileStorageReference.cs
- CodeBinaryOperatorExpression.cs
- BrowserCapabilitiesFactory.cs
- SoapElementAttribute.cs
- IndentedTextWriter.cs