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
- PolicyException.cs
- ButtonFlatAdapter.cs
- JsonWriter.cs
- HttpCachePolicyElement.cs
- SubtreeProcessor.cs
- ConfigurationStrings.cs
- ComboBoxAutomationPeer.cs
- ScrollableControl.cs
- ApplicationCommands.cs
- RotateTransform.cs
- _TLSstream.cs
- DecimalSumAggregationOperator.cs
- NativeWindow.cs
- DateTimeFormat.cs
- CreateUserWizard.cs
- FilterQuery.cs
- InputLanguage.cs
- EastAsianLunisolarCalendar.cs
- ClipboardProcessor.cs
- GenericIdentity.cs
- EntityRecordInfo.cs
- HtmlWindowCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TypeBrowserDialog.cs
- ProjectionCamera.cs
- ByteKeyFrameCollection.cs
- DbConnectionPool.cs
- BasicViewGenerator.cs
- XdrBuilder.cs
- UnionCodeGroup.cs
- WindowsRichEditRange.cs
- JapaneseLunisolarCalendar.cs
- CompositeCollection.cs
- DataGridViewAdvancedBorderStyle.cs
- ILGen.cs
- DBSchemaTable.cs
- CorrelationService.cs
- TreeWalkHelper.cs
- PageBuildProvider.cs
- SHA384Managed.cs
- WebPartConnectionCollection.cs
- DataColumnMappingCollection.cs
- Transform.cs
- PropertyManager.cs
- XmlSchemaAppInfo.cs
- DocumentApplicationJournalEntry.cs
- TreeWalkHelper.cs
- NavigationEventArgs.cs
- IxmlLineInfo.cs
- StorageRoot.cs
- SerialPort.cs
- AccessKeyManager.cs
- Dictionary.cs
- BitmapEditor.cs
- _LocalDataStoreMgr.cs
- isolationinterop.cs
- OracleConnection.cs
- DbMetaDataFactory.cs
- WindowManager.cs
- WindowPattern.cs
- TextEditorTables.cs
- XmlNamespaceMapping.cs
- Substitution.cs
- HtmlTableRowCollection.cs
- SiteOfOriginContainer.cs
- MediaContextNotificationWindow.cs
- SvcMapFile.cs
- NavigationProperty.cs
- PerformanceCounterLib.cs
- PathSegmentCollection.cs
- MD5.cs
- ConfigPathUtility.cs
- AspNetHostingPermission.cs
- DSASignatureDeformatter.cs
- MsmqDecodeHelper.cs
- WebPartEditorCancelVerb.cs
- ValidatingReaderNodeData.cs
- ToolStripRendererSwitcher.cs
- DebugView.cs
- DragCompletedEventArgs.cs
- XmlCDATASection.cs
- DataRelationPropertyDescriptor.cs
- StylusTip.cs
- altserialization.cs
- ConfigurationStrings.cs
- XDeferredAxisSource.cs
- COM2IDispatchConverter.cs
- NativeMethods.cs
- DataBinding.cs
- NonParentingControl.cs
- DataGridViewDataConnection.cs
- DataServiceQueryOfT.cs
- DataConnectionHelper.cs
- MediaPlayerState.cs
- TextAction.cs
- CounterSetInstanceCounterDataSet.cs
- PlanCompilerUtil.cs
- Input.cs
- TextModifierScope.cs
- CacheChildrenQuery.cs