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
- ObjectItemLoadingSessionData.cs
- PathGradientBrush.cs
- SmtpNtlmAuthenticationModule.cs
- SvcMapFile.cs
- TemplatedMailWebEventProvider.cs
- ActivityXRefPropertyEditor.cs
- EventMap.cs
- ValueTable.cs
- JsonWriter.cs
- BuilderPropertyEntry.cs
- FileNameEditor.cs
- Vars.cs
- Size.cs
- OleDbReferenceCollection.cs
- Synchronization.cs
- StreamGeometryContext.cs
- DispatcherTimer.cs
- ProfileBuildProvider.cs
- HtmlInputSubmit.cs
- TagPrefixCollection.cs
- MLangCodePageEncoding.cs
- UnSafeCharBuffer.cs
- cache.cs
- CriticalHandle.cs
- ProvidersHelper.cs
- CodeBinaryOperatorExpression.cs
- EditableLabelControl.cs
- ActivityContext.cs
- WindowsFormsEditorServiceHelper.cs
- EntityContainer.cs
- BindableTemplateBuilder.cs
- BamlCollectionHolder.cs
- ViewGenerator.cs
- XmlMemberMapping.cs
- DynamicMethod.cs
- PolicyReader.cs
- XNodeNavigator.cs
- BitVector32.cs
- PublisherIdentityPermission.cs
- Rect3DValueSerializer.cs
- WebPartCatalogAddVerb.cs
- ServiceProviders.cs
- TextTreeTextBlock.cs
- Panel.cs
- RelatedImageListAttribute.cs
- AlternateView.cs
- SqlRewriteScalarSubqueries.cs
- TrackingQueryElement.cs
- UdpSocket.cs
- WinInetCache.cs
- MonitoringDescriptionAttribute.cs
- PtsContext.cs
- X509RawDataKeyIdentifierClause.cs
- LoginCancelEventArgs.cs
- CrossContextChannel.cs
- IDReferencePropertyAttribute.cs
- RIPEMD160.cs
- MessageContractMemberAttribute.cs
- NameHandler.cs
- WebPartPersonalization.cs
- AuditLogLocation.cs
- QilGeneratorEnv.cs
- SizeF.cs
- CodeTypeDeclaration.cs
- MouseEvent.cs
- LinearKeyFrames.cs
- GPPOINTF.cs
- HttpPostProtocolImporter.cs
- ModelPerspective.cs
- HttpsTransportBindingElement.cs
- WSHttpSecurityElement.cs
- WorkflowServiceInstance.cs
- entityreference_tresulttype.cs
- ContextConfiguration.cs
- ISO2022Encoding.cs
- KeyBinding.cs
- DataViewSettingCollection.cs
- WebHeaderCollection.cs
- ResourcePermissionBase.cs
- CodeArrayCreateExpression.cs
- InputBinding.cs
- TemplateBuilder.cs
- HierarchicalDataBoundControlAdapter.cs
- ListViewItemSelectionChangedEvent.cs
- XmlNodeComparer.cs
- ComponentChangedEvent.cs
- LicenseProviderAttribute.cs
- MatrixTransform3D.cs
- CompilationUtil.cs
- _KerberosClient.cs
- NullableDoubleSumAggregationOperator.cs
- TextElement.cs
- MatrixAnimationUsingKeyFrames.cs
- ScriptMethodAttribute.cs
- LineServicesCallbacks.cs
- FileDialogCustomPlace.cs
- ValidationRuleCollection.cs
- UnsafeNativeMethods.cs
- KeyMatchBuilder.cs
- Attributes.cs