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
- ISAPIApplicationHost.cs
- ByteAnimationUsingKeyFrames.cs
- ListViewInsertedEventArgs.cs
- XmlEventCache.cs
- WebPartVerb.cs
- TextServicesContext.cs
- UserControlBuildProvider.cs
- Icon.cs
- Point3DCollection.cs
- StylusDownEventArgs.cs
- UserPreferenceChangedEventArgs.cs
- XPathNodePointer.cs
- TextRangeSerialization.cs
- UpdatePanel.cs
- WindowCollection.cs
- TextTreeDeleteContentUndoUnit.cs
- ExceptionUtil.cs
- TemplateControlBuildProvider.cs
- ResourceExpressionBuilder.cs
- AsymmetricSecurityProtocol.cs
- WindowsListViewGroupHelper.cs
- ProfileBuildProvider.cs
- CodeArrayIndexerExpression.cs
- NamedObject.cs
- WmlImageAdapter.cs
- LambdaCompiler.Statements.cs
- NotifyIcon.cs
- ManagedWndProcTracker.cs
- AlphaSortedEnumConverter.cs
- ExpanderAutomationPeer.cs
- WindowsNonControl.cs
- PasswordTextNavigator.cs
- ServiceNameCollection.cs
- InheritanceContextHelper.cs
- UrlMappingCollection.cs
- CDSCollectionETWBCLProvider.cs
- selecteditemcollection.cs
- SQLBinary.cs
- ISAPIRuntime.cs
- MatrixAnimationBase.cs
- TrackingServices.cs
- RegexCompilationInfo.cs
- DefaultBindingPropertyAttribute.cs
- OracleColumn.cs
- AppLevelCompilationSectionCache.cs
- WindowsComboBox.cs
- ValueTable.cs
- SoapServerProtocol.cs
- VisualTreeUtils.cs
- WebBrowser.cs
- OrderingInfo.cs
- Part.cs
- MediaContextNotificationWindow.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ThousandthOfEmRealPoints.cs
- entityreference_tresulttype.cs
- FixUp.cs
- TextTreeInsertUndoUnit.cs
- ProfileEventArgs.cs
- ExceptQueryOperator.cs
- StringHandle.cs
- PopupEventArgs.cs
- OdbcConnectionFactory.cs
- DetailsViewRowCollection.cs
- SystemUnicastIPAddressInformation.cs
- ExpressionTable.cs
- ZoomPercentageConverter.cs
- ToolTipService.cs
- DataSourceViewSchemaConverter.cs
- ConnectionStringsExpressionBuilder.cs
- StructuralCache.cs
- BehaviorEditorPart.cs
- StringFreezingAttribute.cs
- IntSumAggregationOperator.cs
- SqlClientWrapperSmiStream.cs
- DispatcherEventArgs.cs
- BindingSourceDesigner.cs
- MailSettingsSection.cs
- MetaForeignKeyColumn.cs
- DrawingBrush.cs
- SqlClientMetaDataCollectionNames.cs
- ClientBuildManagerCallback.cs
- StringFreezingAttribute.cs
- WmfPlaceableFileHeader.cs
- Boolean.cs
- EntityDataSourceView.cs
- CreatingCookieEventArgs.cs
- RegexCompilationInfo.cs
- TrackingAnnotationCollection.cs
- XPathArrayIterator.cs
- EventDescriptor.cs
- DataRow.cs
- HashSetDebugView.cs
- Drawing.cs
- NullRuntimeConfig.cs
- CustomWebEventKey.cs
- WizardSideBarListControlItem.cs
- NewExpression.cs
- ContentElement.cs
- Model3DGroup.cs