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
- EnumerableRowCollectionExtensions.cs
- ProfileBuildProvider.cs
- MediaCommands.cs
- SystemMulticastIPAddressInformation.cs
- FilePrompt.cs
- ButtonAutomationPeer.cs
- PerformanceCounterManager.cs
- PrintingPermissionAttribute.cs
- BlurEffect.cs
- HtmlMeta.cs
- Privilege.cs
- SizeFConverter.cs
- KeyboardDevice.cs
- PermissionRequestEvidence.cs
- TextElementCollectionHelper.cs
- EntityModelSchemaGenerator.cs
- HttpListener.cs
- StopStoryboard.cs
- LinkedResource.cs
- TokenizerHelper.cs
- ExceptionRoutedEventArgs.cs
- TcpTransportBindingElement.cs
- FileUtil.cs
- SimpleBitVector32.cs
- PathFigureCollectionValueSerializer.cs
- HttpCookie.cs
- DocumentPage.cs
- ProxyGenerationError.cs
- FileDialog_Vista.cs
- TransactionFlowElement.cs
- BitmapEffectrendercontext.cs
- ReadOnlyAttribute.cs
- TemplateComponentConnector.cs
- ChannelBase.cs
- DataGridViewCellStateChangedEventArgs.cs
- SqlErrorCollection.cs
- RectIndependentAnimationStorage.cs
- XmlReflectionMember.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Quaternion.cs
- HttpDebugHandler.cs
- Propagator.JoinPropagator.cs
- Internal.cs
- Label.cs
- MonthChangedEventArgs.cs
- WebPartTransformer.cs
- SymbolEqualComparer.cs
- WebPartAuthorizationEventArgs.cs
- XmlQueryType.cs
- Point3DCollection.cs
- BitmapEffectState.cs
- EasingFunctionBase.cs
- SecurityContext.cs
- DelegateHelpers.cs
- SiteIdentityPermission.cs
- DecimalStorage.cs
- BindingNavigator.cs
- StackOverflowException.cs
- ApplyTemplatesAction.cs
- LinqDataSource.cs
- PageEventArgs.cs
- EncryptedPackage.cs
- ToolStripRenderEventArgs.cs
- BatchServiceHost.cs
- ArrayExtension.cs
- CellTreeNodeVisitors.cs
- AuthorizationRule.cs
- IsolationInterop.cs
- RegexCompilationInfo.cs
- ErrorRuntimeConfig.cs
- ConnectionInterfaceCollection.cs
- EntryPointNotFoundException.cs
- ProfessionalColorTable.cs
- InvokeWebService.cs
- PenCursorManager.cs
- GeneralTransform3DTo2DTo3D.cs
- ClockGroup.cs
- PeerApplicationLaunchInfo.cs
- SessionStateItemCollection.cs
- ObjectIDGenerator.cs
- DBCommandBuilder.cs
- Int64Converter.cs
- DataListCommandEventArgs.cs
- ItemCheckedEvent.cs
- AdornedElementPlaceholder.cs
- TextRenderer.cs
- Hashtable.cs
- SmtpNegotiateAuthenticationModule.cs
- DefaultValueAttribute.cs
- HttpWebRequest.cs
- DoubleAnimation.cs
- OdbcError.cs
- EmissiveMaterial.cs
- SHA256Managed.cs
- EditorResources.cs
- TextBoxView.cs
- DecimalAnimation.cs
- ActivityFunc.cs
- AbandonedMutexException.cs
- X509ChainPolicy.cs