Code:
/ FX-1434 / FX-1434 / 1.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
- HelpInfo.cs
- FreeFormDesigner.cs
- CreateUserWizardAutoFormat.cs
- FrameworkRichTextComposition.cs
- AsymmetricCryptoHandle.cs
- FormsAuthentication.cs
- ListenerConnectionDemuxer.cs
- EntityTemplateFactory.cs
- SQLInt64.cs
- ToolStripDropTargetManager.cs
- Helpers.cs
- unsafenativemethodstextservices.cs
- NonNullItemCollection.cs
- RelatedImageListAttribute.cs
- MemberMaps.cs
- SmtpException.cs
- SafeThreadHandle.cs
- RemoteWebConfigurationHostServer.cs
- _ScatterGatherBuffers.cs
- TableItemPattern.cs
- LiteralControl.cs
- CachedRequestParams.cs
- TailPinnedEventArgs.cs
- UIElementHelper.cs
- WindowsPrincipal.cs
- MonikerHelper.cs
- Win32Native.cs
- OutputScope.cs
- MediaPlayerState.cs
- StringDictionary.cs
- OperandQuery.cs
- EntityViewContainer.cs
- ImageConverter.cs
- _HelperAsyncResults.cs
- CacheMemory.cs
- TrustManagerPromptUI.cs
- TripleDES.cs
- FixedSOMSemanticBox.cs
- VScrollProperties.cs
- XmlSchemaSimpleContent.cs
- CheckPair.cs
- dbenumerator.cs
- ApplicationHost.cs
- PageContentCollection.cs
- HttpValueCollection.cs
- WebSysDisplayNameAttribute.cs
- SelectionProviderWrapper.cs
- ConfigXmlComment.cs
- SqlUtil.cs
- OutputCacheSettings.cs
- altserialization.cs
- ParenthesizePropertyNameAttribute.cs
- AnnotationAuthorChangedEventArgs.cs
- PackagePartCollection.cs
- base64Transforms.cs
- ContentHostHelper.cs
- ManagedCodeMarkers.cs
- ToolStripDropDown.cs
- FontSizeConverter.cs
- ActivityInstance.cs
- CommonDialog.cs
- _HTTPDateParse.cs
- ListViewItem.cs
- BamlRecords.cs
- AutoGeneratedFieldProperties.cs
- UserControlDesigner.cs
- XomlCompiler.cs
- StyleCollectionEditor.cs
- ListViewItemEventArgs.cs
- DesigntimeLicenseContext.cs
- WebBaseEventKeyComparer.cs
- PrintDocument.cs
- CachedBitmap.cs
- HttpHandlerActionCollection.cs
- BitmapData.cs
- CodeParameterDeclarationExpressionCollection.cs
- NaturalLanguageHyphenator.cs
- DiagnosticStrings.cs
- HwndSubclass.cs
- SecurityException.cs
- ComplexLine.cs
- _ChunkParse.cs
- Point.cs
- ShutDownListener.cs
- ValueTypeFixupInfo.cs
- DiffuseMaterial.cs
- SmtpTransport.cs
- TrackBarRenderer.cs
- WaitHandle.cs
- XPathScanner.cs
- XmlSchemaInfo.cs
- XmlSchemaAny.cs
- UnicodeEncoding.cs
- DesignerResources.cs
- PeerInvitationResponse.cs
- InvalidOleVariantTypeException.cs
- SchemaCollectionPreprocessor.cs
- Pens.cs
- AssemblyResolver.cs
- QilList.cs