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
- WebPartDeleteVerb.cs
- FontFamily.cs
- JsonGlobals.cs
- AmbientLight.cs
- SplitContainer.cs
- DoubleLinkList.cs
- DataBindingCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- ValidationException.cs
- ChildrenQuery.cs
- KeyedQueue.cs
- WebBrowserNavigatedEventHandler.cs
- Privilege.cs
- BStrWrapper.cs
- ControlEvent.cs
- HtmlTextArea.cs
- SoapExtension.cs
- AdvancedBindingEditor.cs
- WebBaseEventKeyComparer.cs
- RuleValidation.cs
- ClientCultureInfo.cs
- _HeaderInfoTable.cs
- CodeSnippetExpression.cs
- UrlSyndicationContent.cs
- CellIdBoolean.cs
- DivideByZeroException.cs
- SelectionChangedEventArgs.cs
- VideoDrawing.cs
- XPathDocumentNavigator.cs
- arc.cs
- ListBase.cs
- LogRecordSequence.cs
- XdrBuilder.cs
- UniqueID.cs
- MatrixValueSerializer.cs
- unsafenativemethodsother.cs
- FixedSOMTextRun.cs
- Link.cs
- ObjectCloneHelper.cs
- PlanCompiler.cs
- DataView.cs
- Column.cs
- SerializationSectionGroup.cs
- GeometryDrawing.cs
- OrderedEnumerableRowCollection.cs
- HtmlTable.cs
- ProcessHost.cs
- BoundPropertyEntry.cs
- ListChangedEventArgs.cs
- PlacementWorkspace.cs
- EntityException.cs
- XPathConvert.cs
- EdmToObjectNamespaceMap.cs
- ParseChildrenAsPropertiesAttribute.cs
- ApplicationId.cs
- EnumerationRangeValidationUtil.cs
- Debug.cs
- WebPartEditorCancelVerb.cs
- TimeZone.cs
- MulticastIPAddressInformationCollection.cs
- DeploymentSection.cs
- FixedTextBuilder.cs
- SizeKeyFrameCollection.cs
- Odbc32.cs
- TextEmbeddedObject.cs
- XmlSchemaAnnotation.cs
- StreamInfo.cs
- SR.cs
- NativeMethods.cs
- SoapInteropTypes.cs
- CalendarAutoFormat.cs
- HttpCapabilitiesEvaluator.cs
- FederatedMessageSecurityOverHttp.cs
- HostedHttpRequestAsyncResult.cs
- ipaddressinformationcollection.cs
- Viewport3DAutomationPeer.cs
- FormsAuthenticationConfiguration.cs
- SecurityUtils.cs
- TextCompositionManager.cs
- MemberInitExpression.cs
- SettingsPropertyValue.cs
- WindowVisualStateTracker.cs
- OracleBoolean.cs
- DbProviderFactoriesConfigurationHandler.cs
- PersonalizationAdministration.cs
- TranslateTransform3D.cs
- HostProtectionPermission.cs
- SystemException.cs
- OdbcConnectionString.cs
- CompositeCollection.cs
- FocusTracker.cs
- TextRange.cs
- NameValueFileSectionHandler.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- XPathExpr.cs
- OdbcCommand.cs
- Int32CAMarshaler.cs
- ServiceReflector.cs
- ApplicationSecurityManager.cs
- PermissionSet.cs