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
- TreeNodeStyleCollectionEditor.cs
- XmlDocumentType.cs
- XsltArgumentList.cs
- BitmapFrameEncode.cs
- WpfPayload.cs
- HighContrastHelper.cs
- WindowsFormsHelpers.cs
- ThrowHelper.cs
- BitmapDecoder.cs
- SendMessageContent.cs
- ProviderUtil.cs
- WebPartCatalogCloseVerb.cs
- ParameterCollectionEditorForm.cs
- OracleBFile.cs
- sqlpipe.cs
- DateTimeFormatInfoScanner.cs
- DuplicateMessageDetector.cs
- DeadCharTextComposition.cs
- httpserverutility.cs
- DefaultValueTypeConverter.cs
- RestHandler.cs
- SoapElementAttribute.cs
- CommandLibraryHelper.cs
- SHA512.cs
- PointLight.cs
- SpeechEvent.cs
- ConsoleTraceListener.cs
- DeriveBytes.cs
- XhtmlMobileTextWriter.cs
- SQLResource.cs
- CodeMethodReturnStatement.cs
- DataColumnChangeEvent.cs
- TemplateParser.cs
- DataGridViewColumnTypePicker.cs
- grammarelement.cs
- X509IssuerSerialKeyIdentifierClause.cs
- TemplatePagerField.cs
- ParameterBinding.cs
- CompiledQuery.cs
- BrowserDefinition.cs
- ProfilePropertyMetadata.cs
- Baml2006KeyRecord.cs
- WebHttpSecurityElement.cs
- ToolStripRendererSwitcher.cs
- ModelFunctionTypeElement.cs
- WmfPlaceableFileHeader.cs
- NativeMethodsCLR.cs
- FolderNameEditor.cs
- ContentIterators.cs
- ErrorCodes.cs
- StateWorkerRequest.cs
- ApplicationException.cs
- SqlRewriteScalarSubqueries.cs
- HttpConfigurationSystem.cs
- ConfigXmlWhitespace.cs
- DispatcherTimer.cs
- CompiledRegexRunner.cs
- DeclarativeExpressionConditionDeclaration.cs
- TreeNodeBinding.cs
- FirstMatchCodeGroup.cs
- TerminateDesigner.cs
- precedingquery.cs
- UniqueIdentifierService.cs
- NativeMethods.cs
- ScriptingWebServicesSectionGroup.cs
- AliasExpr.cs
- ClientOptions.cs
- NavigationExpr.cs
- HTMLTagNameToTypeMapper.cs
- CodeGenerator.cs
- SymbolEqualComparer.cs
- ZipIOLocalFileBlock.cs
- ManagedIStream.cs
- Walker.cs
- Convert.cs
- FileRecordSequenceHelper.cs
- XmlSchemaInfo.cs
- AncestorChangedEventArgs.cs
- FixedHyperLink.cs
- SQLStringStorage.cs
- ConfigXmlSignificantWhitespace.cs
- User.cs
- CoTaskMemUnicodeSafeHandle.cs
- RelatedCurrencyManager.cs
- RuntimeWrappedException.cs
- ChannelEndpointElementCollection.cs
- TripleDESCryptoServiceProvider.cs
- XmlLangPropertyAttribute.cs
- CheckBox.cs
- OdbcDataAdapter.cs
- BeginStoryboard.cs
- CatalogPartChrome.cs
- CaseInsensitiveComparer.cs
- WebException.cs
- ConfigXmlComment.cs
- CustomAssemblyResolver.cs
- StorageMappingItemLoader.cs
- SettingsProviderCollection.cs
- MetaType.cs
- BitmapData.cs