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
- InterleavedZipPartStream.cs
- HtmlInputRadioButton.cs
- ObjectRef.cs
- DotExpr.cs
- ConstructorBuilder.cs
- AtlasWeb.Designer.cs
- ErrorWebPart.cs
- XPathParser.cs
- ValueQuery.cs
- LinkLabel.cs
- Pair.cs
- ConfigPathUtility.cs
- HttpHeaderCollection.cs
- DataConnectionHelper.cs
- XamlGridLengthSerializer.cs
- OutputScope.cs
- TimeoutHelper.cs
- VisualTarget.cs
- WindowsNonControl.cs
- EditBehavior.cs
- ControlAdapter.cs
- SuspendDesigner.cs
- InvalidWMPVersionException.cs
- XsltArgumentList.cs
- ADConnectionHelper.cs
- _Connection.cs
- HttpListenerContext.cs
- ProfileProvider.cs
- SplineQuaternionKeyFrame.cs
- StoryFragments.cs
- TopClause.cs
- CoreSwitches.cs
- AutomationFocusChangedEventArgs.cs
- baseaxisquery.cs
- ClosureBinding.cs
- SqlBulkCopy.cs
- TheQuery.cs
- BooleanSwitch.cs
- DebugView.cs
- LateBoundBitmapDecoder.cs
- HtmlAnchor.cs
- WebPartConnectionsCloseVerb.cs
- ArraySegment.cs
- UriExt.cs
- SynchronizationLockException.cs
- XhtmlBasicLinkAdapter.cs
- HttpHandlersSection.cs
- SettingsBindableAttribute.cs
- InstanceCollisionException.cs
- DesignerActionPropertyItem.cs
- TraceHandler.cs
- HttpRequestWrapper.cs
- MdImport.cs
- TabPanel.cs
- FaultReason.cs
- CacheVirtualItemsEvent.cs
- ToolStripDropDownClosingEventArgs.cs
- RotateTransform3D.cs
- DataServiceOperationContext.cs
- GetPageCompletedEventArgs.cs
- RegexCompilationInfo.cs
- DocumentViewerBase.cs
- LocationUpdates.cs
- CompressionTransform.cs
- DateTimeUtil.cs
- TreeNode.cs
- StaticTextPointer.cs
- PropertyInfoSet.cs
- AmbientLight.cs
- _UriTypeConverter.cs
- SmtpMail.cs
- DataViewManager.cs
- ControlSerializer.cs
- DataGridTextBoxColumn.cs
- DodSequenceMerge.cs
- PersistChildrenAttribute.cs
- X509Certificate2Collection.cs
- SystemColorTracker.cs
- Frame.cs
- CompiledELinqQueryState.cs
- SqlStatistics.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MailWriter.cs
- HelpInfo.cs
- XmlQueryRuntime.cs
- ColumnTypeConverter.cs
- DrawingAttributeSerializer.cs
- WindowsRichEdit.cs
- DataSourceHelper.cs
- SamlAttribute.cs
- AuthenticationException.cs
- SqlUserDefinedTypeAttribute.cs
- MenuAutomationPeer.cs
- RequestCacheValidator.cs
- IList.cs
- RtfControlWordInfo.cs
- CodeGroup.cs
- ApplicationInfo.cs
- RegexCode.cs
- ExpressionDumper.cs