Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Serializer / WorkflowMarkupSerializationProvider.cs / 1305376 / WorkflowMarkupSerializationProvider.cs
namespace System.Workflow.ComponentModel.Serialization { using System; using System.IO; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Xml; using System.Xml.Serialization; using System.Reflection; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Globalization; using System.Workflow.ComponentModel.Compiler; using System.Workflow.ComponentModel.Design; using System.Runtime.Serialization; using System.Security.Permissions; using System.Collections.ObjectModel; using System.Drawing; #region Class WorkflowMarkupSerializationProvider internal class WorkflowMarkupSerializationProvider : IDesignerSerializationProvider { public virtual object GetSerializer(IDesignerSerializationManager manager, object currentSerializer, Type objectType, Type serializerType) { // If this isn't a serializer type we recognize, do nothing. Also, if metadata specified // a custom serializer, then use it. if (serializerType != typeof(WorkflowMarkupSerializer) || currentSerializer != null) return null; //DO NOT CHANGE THIS ORDER ELSE DICTIONARY WILL START GETTING SERIALIZED AS COLLECTION if (typeof(IDictionary).IsAssignableFrom(objectType)) return new DictionaryMarkupSerializer(); if (CollectionMarkupSerializer.IsValidCollectionType(objectType)) return new CollectionMarkupSerializer(); return new WorkflowMarkupSerializer(); } } #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
- InkCanvasInnerCanvas.cs
- Set.cs
- FixedSOMElement.cs
- DataRowChangeEvent.cs
- XmlAttribute.cs
- CodeMemberField.cs
- SignedPkcs7.cs
- lengthconverter.cs
- TcpPortSharing.cs
- TextBoxDesigner.cs
- XNodeValidator.cs
- AncillaryOps.cs
- wgx_render.cs
- DataGridCell.cs
- StateMachineWorkflowInstance.cs
- File.cs
- DocumentPageViewAutomationPeer.cs
- DirectoryNotFoundException.cs
- WindowsIPAddress.cs
- JavaScriptString.cs
- MatrixIndependentAnimationStorage.cs
- WebPartConnectionsConnectVerb.cs
- SystemIPInterfaceProperties.cs
- ScrollBarRenderer.cs
- InvalidCastException.cs
- Stack.cs
- TTSEngineTypes.cs
- RunWorkerCompletedEventArgs.cs
- ListViewItemCollectionEditor.cs
- TextParagraph.cs
- ZipIOExtraField.cs
- CodeCatchClauseCollection.cs
- PenLineCapValidation.cs
- UnknownBitmapEncoder.cs
- EncodingNLS.cs
- Repeater.cs
- CircleEase.cs
- HttpResponse.cs
- ContextDataSource.cs
- PolyBezierSegmentFigureLogic.cs
- Typography.cs
- ServiceMetadataExtension.cs
- DataKey.cs
- MappedMetaModel.cs
- ResXResourceReader.cs
- CodeExpressionStatement.cs
- RolePrincipal.cs
- InkCanvasInnerCanvas.cs
- ObjectDataSourceChooseTypePanel.cs
- TextRange.cs
- AttributeCollection.cs
- PropertySourceInfo.cs
- WindowManager.cs
- WindowsListViewGroup.cs
- FormParameter.cs
- NetTcpBinding.cs
- IChannel.cs
- FileSystemInfo.cs
- XPathMessageFilterElementComparer.cs
- DriveNotFoundException.cs
- DecimalConverter.cs
- ButtonColumn.cs
- DataColumn.cs
- RegexRunnerFactory.cs
- TableLayoutPanelCellPosition.cs
- Identity.cs
- DbProviderFactory.cs
- WebContentFormatHelper.cs
- AutomationProperties.cs
- ListViewItemEventArgs.cs
- MissingManifestResourceException.cs
- OutputCacheSettings.cs
- CLRBindingWorker.cs
- FieldMetadata.cs
- UInt16.cs
- PassportIdentity.cs
- FileUtil.cs
- RenderOptions.cs
- InfoCardConstants.cs
- DockPattern.cs
- Internal.cs
- WebControlAdapter.cs
- ImageDrawing.cs
- ButtonBaseAdapter.cs
- SQLInt64Storage.cs
- PersonalizationState.cs
- Wizard.cs
- ObjectItemCollection.cs
- GeneralTransformCollection.cs
- AnnotationResourceChangedEventArgs.cs
- PropertyManager.cs
- TypedDataSourceCodeGenerator.cs
- BindingMAnagerBase.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WindowsPen.cs
- Trace.cs
- MailWebEventProvider.cs
- UIElementAutomationPeer.cs
- ReflectionTypeLoadException.cs
- CachedPathData.cs