Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Serializer / PropertySegmentSerializationProvider.cs / 1305376 / PropertySegmentSerializationProvider.cs
namespace System.Workflow.ComponentModel.Serialization { using System; using System.Reflection; using System.Xml; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Workflow.ComponentModel.Design; using System.ComponentModel; #region Class PropertySegmentSerializationProvider internal sealed class PropertySegmentSerializationProvider : WorkflowMarkupSerializationProvider { #region IDesignerSerializationProvider Members public override object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType) { if (serializerType.IsAssignableFrom(typeof(WorkflowMarkupSerializer))) { if (currentSerializer is PropertySegmentSerializer) return currentSerializer; else if (objectType == typeof(PropertySegment)) return new PropertySegmentSerializer(null); else if (currentSerializer is WorkflowMarkupSerializer) return new PropertySegmentSerializer(currentSerializer as WorkflowMarkupSerializer); else return null; } else { return base.GetSerializer(manager, currentSerializer, objectType, serializerType); } } #endregion } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel.Serialization { using System; using System.Reflection; using System.Xml; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Workflow.ComponentModel.Design; using System.ComponentModel; #region Class PropertySegmentSerializationProvider internal sealed class PropertySegmentSerializationProvider : WorkflowMarkupSerializationProvider { #region IDesignerSerializationProvider Members public override object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType) { if (serializerType.IsAssignableFrom(typeof(WorkflowMarkupSerializer))) { if (currentSerializer is PropertySegmentSerializer) return currentSerializer; else if (objectType == typeof(PropertySegment)) return new PropertySegmentSerializer(null); else if (currentSerializer is WorkflowMarkupSerializer) return new PropertySegmentSerializer(currentSerializer as WorkflowMarkupSerializer); else return null; } else { return base.GetSerializer(manager, currentSerializer, objectType, serializerType); } } #endregion } #endregion } // 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
- FontStyle.cs
- VisualBasicSettings.cs
- NamespaceQuery.cs
- SqlNode.cs
- ScriptIgnoreAttribute.cs
- SecurityContextTokenCache.cs
- PathSegment.cs
- ClientBuildManagerCallback.cs
- XmlUnspecifiedAttribute.cs
- BuilderPropertyEntry.cs
- DataGridColumnCollection.cs
- AsymmetricAlgorithm.cs
- PlatformNotSupportedException.cs
- ActivityBuilderHelper.cs
- ToolZone.cs
- DBSchemaTable.cs
- CommandHelpers.cs
- OleDbPermission.cs
- BaseProcessor.cs
- DictionaryBase.cs
- LoopExpression.cs
- PrintDialog.cs
- TableLayoutPanelBehavior.cs
- WebPartDescription.cs
- DependencyPropertyDescriptor.cs
- FileAuthorizationModule.cs
- StorageConditionPropertyMapping.cs
- StrongNamePublicKeyBlob.cs
- TransactionManagerProxy.cs
- TreeNodeConverter.cs
- SoapExtensionTypeElementCollection.cs
- EventLogger.cs
- StoragePropertyMapping.cs
- ItemCheckedEvent.cs
- SourceChangedEventArgs.cs
- EventLogPermissionEntryCollection.cs
- StringValidator.cs
- FilterUserControlBase.cs
- SiteMapNodeCollection.cs
- ButtonStandardAdapter.cs
- LocalValueEnumerator.cs
- TextRange.cs
- ColorContextHelper.cs
- ConfigurationSchemaErrors.cs
- ConfigXmlAttribute.cs
- BamlVersionHeader.cs
- DelimitedListTraceListener.cs
- StreamAsIStream.cs
- NavigationExpr.cs
- InvalidAsynchronousStateException.cs
- UnsafeNativeMethods.cs
- WSSecureConversationDec2005.cs
- TypeHelpers.cs
- CellLabel.cs
- SynchronizationContext.cs
- WasAdminWrapper.cs
- SelectionManager.cs
- CustomValidator.cs
- FigureParaClient.cs
- QuaternionAnimationUsingKeyFrames.cs
- Wildcard.cs
- ButtonFlatAdapter.cs
- SourceFilter.cs
- StorageAssociationTypeMapping.cs
- TimeZone.cs
- SqlCommandAsyncResult.cs
- UIElementIsland.cs
- PathNode.cs
- NGCUIElementCollectionSerializerAsync.cs
- CompilerInfo.cs
- BasicViewGenerator.cs
- ExpandCollapseProviderWrapper.cs
- TailCallAnalyzer.cs
- ConfigXmlText.cs
- EntityProxyFactory.cs
- DataGridPageChangedEventArgs.cs
- CodeBinaryOperatorExpression.cs
- ImageListUtils.cs
- Int64AnimationBase.cs
- PageThemeCodeDomTreeGenerator.cs
- XamlDesignerSerializationManager.cs
- ContainerParagraph.cs
- XmlAttribute.cs
- SqlInternalConnectionTds.cs
- FilteredReadOnlyMetadataCollection.cs
- SqlDelegatedTransaction.cs
- DataReaderContainer.cs
- CallbackHandler.cs
- SignatureTargetIdManager.cs
- autovalidator.cs
- JoinGraph.cs
- DataGridViewEditingControlShowingEventArgs.cs
- dbdatarecord.cs
- EntitySet.cs
- TextEditorParagraphs.cs
- TriggerBase.cs
- InstanceValue.cs
- OperationContractAttribute.cs
- DecoderNLS.cs
- TextBoxAutomationPeer.cs