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
- StringPropertyBuilder.cs
- XmlLangPropertyAttribute.cs
- SignedInfo.cs
- PointLight.cs
- DataTrigger.cs
- mda.cs
- RtfToken.cs
- MemberAssignmentAnalysis.cs
- TranslateTransform3D.cs
- Cursors.cs
- NativeObjectSecurity.cs
- ScriptingScriptResourceHandlerSection.cs
- PcmConverter.cs
- HttpValueCollection.cs
- PlainXmlSerializer.cs
- XmlChildNodes.cs
- Keywords.cs
- EntitySetRetriever.cs
- CodeAttachEventStatement.cs
- BitmapCodecInfo.cs
- DataGridItem.cs
- ResourceDescriptionAttribute.cs
- CheckoutException.cs
- XmlSchemaAny.cs
- XamlSerializer.cs
- KnownIds.cs
- _ProxyChain.cs
- _NativeSSPI.cs
- SvcMapFileSerializer.cs
- Baml2006KnownTypes.cs
- Transform.cs
- DataObjectFieldAttribute.cs
- StylusPointDescription.cs
- BitSet.cs
- FormViewDeletedEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- RegexGroup.cs
- NameValuePair.cs
- Token.cs
- FtpCachePolicyElement.cs
- mactripleDES.cs
- WsdlServiceChannelBuilder.cs
- CodeTypeDeclarationCollection.cs
- AudioDeviceOut.cs
- ContextBase.cs
- OracleTimeSpan.cs
- DataGridView.cs
- XmlUrlResolver.cs
- PersonalizationDictionary.cs
- ColumnMapProcessor.cs
- DataTableMappingCollection.cs
- MachineKeyConverter.cs
- COAUTHIDENTITY.cs
- X509Certificate2Collection.cs
- DocComment.cs
- FixedSOMContainer.cs
- SqlExpander.cs
- GenericPrincipal.cs
- CompatibleComparer.cs
- XmlSchemaExternal.cs
- _ChunkParse.cs
- HashSetDebugView.cs
- WebServiceMethodData.cs
- XhtmlMobileTextWriter.cs
- HashLookup.cs
- RealProxy.cs
- LocatorPartList.cs
- XmlEnumAttribute.cs
- DetailsViewRowCollection.cs
- Section.cs
- EdgeProfileValidation.cs
- Array.cs
- WebReference.cs
- SessionPageStateSection.cs
- XsltInput.cs
- NTAccount.cs
- RowBinding.cs
- ActiveDocumentEvent.cs
- SoapFormatter.cs
- DoubleCollectionConverter.cs
- DbConnectionFactory.cs
- AssemblyResourceLoader.cs
- DiagnosticsConfigurationHandler.cs
- Memoizer.cs
- EnumValAlphaComparer.cs
- ByteStreamMessageUtility.cs
- ProtectedProviderSettings.cs
- ResourcePool.cs
- ManagementObject.cs
- RoleManagerSection.cs
- MimeTextImporter.cs
- MatrixTransform.cs
- Blend.cs
- SmiEventStream.cs
- ConstructorExpr.cs
- DocumentViewerBase.cs
- QueryCacheKey.cs
- ConfigPathUtility.cs
- CompositeCollectionView.cs
- QuestionEventArgs.cs