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
- ProfileSettings.cs
- RepeaterItemCollection.cs
- TabControlEvent.cs
- StorageComplexPropertyMapping.cs
- EncryptedXml.cs
- GridViewSortEventArgs.cs
- COM2TypeInfoProcessor.cs
- DtdParser.cs
- IgnoreSection.cs
- ResourceExpressionBuilder.cs
- CheckedListBox.cs
- SafeTimerHandle.cs
- AccessedThroughPropertyAttribute.cs
- SymLanguageVendor.cs
- MiniConstructorInfo.cs
- GenericIdentity.cs
- EpmContentSerializerBase.cs
- TextBoxAutomationPeer.cs
- MenuItemBinding.cs
- DateRangeEvent.cs
- Update.cs
- Int32Rect.cs
- ImageKeyConverter.cs
- NativeMethods.cs
- UpdateCompiler.cs
- NativeMethods.cs
- JulianCalendar.cs
- CompositeActivityTypeDescriptor.cs
- SharedDp.cs
- ValidatorCollection.cs
- Peer.cs
- HtmlHistory.cs
- GeometryGroup.cs
- QueueProcessor.cs
- URLMembershipCondition.cs
- NetworkStream.cs
- ProtocolViolationException.cs
- QueryContinueDragEventArgs.cs
- FormsAuthenticationModule.cs
- QilChoice.cs
- ListDictionaryInternal.cs
- PageParser.cs
- OracleNumber.cs
- SnapLine.cs
- TextDocumentView.cs
- EntityContainerEmitter.cs
- TextEndOfLine.cs
- CssTextWriter.cs
- Pair.cs
- IResourceProvider.cs
- DataServiceResponse.cs
- WpfKnownMemberInvoker.cs
- FrameworkElementFactoryMarkupObject.cs
- PackUriHelper.cs
- Guid.cs
- FileDialog_Vista_Interop.cs
- DBSqlParserTable.cs
- Point4D.cs
- ViewManagerAttribute.cs
- HtmlWindow.cs
- SafeHandles.cs
- ButtonBaseAutomationPeer.cs
- ObjectTypeMapping.cs
- DataGridViewRowStateChangedEventArgs.cs
- SmiSettersStream.cs
- DataGridViewCellPaintingEventArgs.cs
- TextSelectionProcessor.cs
- SeekStoryboard.cs
- Material.cs
- ExtentKey.cs
- XmlSchemaParticle.cs
- UserControl.cs
- GridViewRow.cs
- Vertex.cs
- WorkflowItemPresenter.cs
- BookmarkNameHelper.cs
- MethodAccessException.cs
- sqlcontext.cs
- NominalTypeEliminator.cs
- ConvertEvent.cs
- URLIdentityPermission.cs
- Base64Decoder.cs
- ScaleTransform3D.cs
- PreviewPrintController.cs
- WorkBatch.cs
- HierarchicalDataTemplate.cs
- EntitySetDataBindingList.cs
- PropertyConverter.cs
- WebPartConnectVerb.cs
- ParenExpr.cs
- MergeExecutor.cs
- XmlTextReader.cs
- DeploymentSection.cs
- TextSimpleMarkerProperties.cs
- DeploymentExceptionMapper.cs
- WhereQueryOperator.cs
- ServicesExceptionNotHandledEventArgs.cs
- DesignBindingEditor.cs
- SqlUdtInfo.cs
- TextFormatter.cs