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
- HitTestResult.cs
- CodeDirectionExpression.cs
- Viewport3DVisual.cs
- TextParaClient.cs
- SigningCredentials.cs
- ViewgenGatekeeper.cs
- ColumnPropertiesGroup.cs
- GlyphsSerializer.cs
- Hex.cs
- GcHandle.cs
- CreateUserWizardStep.cs
- Material.cs
- CodeMethodReturnStatement.cs
- RequiredFieldValidator.cs
- EncryptedData.cs
- EventProviderWriter.cs
- UnsafeNativeMethods.cs
- LayoutSettings.cs
- OverflowException.cs
- DataGridViewDataConnection.cs
- EditorPartCollection.cs
- SuppressMergeCheckAttribute.cs
- WMIGenerator.cs
- ClientSideQueueItem.cs
- XmlSchemaExternal.cs
- Rule.cs
- _NtlmClient.cs
- RecipientIdentity.cs
- InfiniteTimeSpanConverter.cs
- ProfileSettingsCollection.cs
- DisposableCollectionWrapper.cs
- Viewport3DAutomationPeer.cs
- AccessDataSource.cs
- TagPrefixAttribute.cs
- CheckBoxRenderer.cs
- StrokeNodeOperations.cs
- WebConfigurationHostFileChange.cs
- LambdaCompiler.ControlFlow.cs
- _ConnectOverlappedAsyncResult.cs
- FontCacheUtil.cs
- ParseChildrenAsPropertiesAttribute.cs
- GcSettings.cs
- XmlArrayItemAttribute.cs
- SwitchElementsCollection.cs
- HandleTable.cs
- Formatter.cs
- TreeViewItemAutomationPeer.cs
- ButtonPopupAdapter.cs
- TdsParser.cs
- PropertyToken.cs
- TextServicesDisplayAttribute.cs
- WindowsHyperlink.cs
- XPathScanner.cs
- UriTemplateMatch.cs
- XamlClipboardData.cs
- DocumentApplicationJournalEntry.cs
- MD5.cs
- SystemIcons.cs
- NewArray.cs
- ToolZone.cs
- TreeNodeClickEventArgs.cs
- PolyLineSegment.cs
- ProfileEventArgs.cs
- DataGridColumnsPage.cs
- SqlServer2KCompatibilityAnnotation.cs
- BitmapEffectCollection.cs
- TextBlockAutomationPeer.cs
- EntitySet.cs
- XPathDocumentBuilder.cs
- ClientScriptItemCollection.cs
- PEFileEvidenceFactory.cs
- DES.cs
- ExecutedRoutedEventArgs.cs
- HwndHost.cs
- ReadOnlyPropertyMetadata.cs
- ImpersonationOption.cs
- BamlCollectionHolder.cs
- SystemInfo.cs
- SpeechRecognitionEngine.cs
- CollectionChange.cs
- Token.cs
- SortedList.cs
- DataGridViewUtilities.cs
- DataServiceQueryException.cs
- DataRecordObjectView.cs
- Margins.cs
- CacheEntry.cs
- DataBindingCollection.cs
- FilterQuery.cs
- RelationshipWrapper.cs
- Context.cs
- Expression.cs
- ConnectionConsumerAttribute.cs
- WebPartCancelEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- DebugInfoExpression.cs
- TransactionChannel.cs
- LineServices.cs
- WindowAutomationPeer.cs
- StringExpressionSet.cs