Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsTab.cs
- FontNameConverter.cs
- TreeViewImageKeyConverter.cs
- SoapReflector.cs
- BlockCollection.cs
- UrlMapping.cs
- XmlTextAttribute.cs
- HtmlTableRowCollection.cs
- SemaphoreSecurity.cs
- OutputCacheModule.cs
- GridEntryCollection.cs
- DetailsViewModeEventArgs.cs
- Site.cs
- DataBinder.cs
- AppModelKnownContentFactory.cs
- webeventbuffer.cs
- Parsers.cs
- QilReplaceVisitor.cs
- AssociatedControlConverter.cs
- AttributeConverter.cs
- HandlerFactoryCache.cs
- DbParameterHelper.cs
- WebPartEditorApplyVerb.cs
- XmlDomTextWriter.cs
- NotifyIcon.cs
- HwndProxyElementProvider.cs
- ResourceReader.cs
- objectresult_tresulttype.cs
- SmtpAuthenticationManager.cs
- StorageTypeMapping.cs
- MULTI_QI.cs
- ColorDialog.cs
- AuthorizationContext.cs
- ElementHostAutomationPeer.cs
- DrawListViewColumnHeaderEventArgs.cs
- PolicyChain.cs
- DockPatternIdentifiers.cs
- EUCJPEncoding.cs
- PartialTrustHelpers.cs
- TemplateParser.cs
- XhtmlBasicValidatorAdapter.cs
- ConstraintCollection.cs
- GroupBox.cs
- HtmlImage.cs
- SqlCommandBuilder.cs
- DeploymentSection.cs
- ContextStaticAttribute.cs
- XmlDataImplementation.cs
- MultipartIdentifier.cs
- UrlRoutingModule.cs
- IncrementalReadDecoders.cs
- WebPartConnection.cs
- XmlSchemaObject.cs
- WindowsSecurityToken.cs
- SqlProvider.cs
- SerialPort.cs
- LoadItemsEventArgs.cs
- BufferModeSettings.cs
- BitmapCache.cs
- Timeline.cs
- NativeCppClassAttribute.cs
- ImageKeyConverter.cs
- SectionInput.cs
- PriorityItem.cs
- AnnotationHighlightLayer.cs
- ImageCodecInfoPrivate.cs
- HtmlTableRow.cs
- ComplexTypeEmitter.cs
- ImageClickEventArgs.cs
- hwndwrapper.cs
- DataGridViewSelectedRowCollection.cs
- QilInvokeLateBound.cs
- Monitor.cs
- EntityDataSourceDataSelectionPanel.cs
- TogglePattern.cs
- ForeignKeyFactory.cs
- ObjectListCommand.cs
- XmlSchemaExternal.cs
- WeakReferenceList.cs
- SymLanguageVendor.cs
- ResponseBodyWriter.cs
- ManipulationPivot.cs
- NavigationEventArgs.cs
- TypeDescriptorFilterService.cs
- RequestCache.cs
- IdentityValidationException.cs
- SafeEventHandle.cs
- DnsPermission.cs
- RegexStringValidator.cs
- DecimalAnimationBase.cs
- WebPartExportVerb.cs
- Compiler.cs
- SystemException.cs
- HtmlTable.cs
- DecoderFallback.cs
- TargetParameterCountException.cs
- Asn1IntegerConverter.cs
- Normalizer.cs
- InternalConfigConfigurationFactory.cs
- CounterSetInstanceCounterDataSet.cs