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
- TextTreeFixupNode.cs
- DbConnectionStringCommon.cs
- ListenerElementsCollection.cs
- ContentPropertyAttribute.cs
- ColorContext.cs
- InvalidPropValue.cs
- ClickablePoint.cs
- DesignBindingPicker.cs
- WpfKnownType.cs
- StylusLogic.cs
- SQLInt64Storage.cs
- LocalizedNameDescriptionPair.cs
- CodeTypeConstructor.cs
- HandleRef.cs
- DataSourceConverter.cs
- CommandManager.cs
- SqlFactory.cs
- WindowsScrollBarBits.cs
- CommandManager.cs
- OleDbInfoMessageEvent.cs
- BitmapImage.cs
- oledbconnectionstring.cs
- EntityDataSourceViewSchema.cs
- AlignmentXValidation.cs
- ScheduleChanges.cs
- BamlResourceSerializer.cs
- ComAdminWrapper.cs
- PolyBezierSegmentFigureLogic.cs
- ProcessThreadCollection.cs
- EditorZoneBase.cs
- BuildManagerHost.cs
- ColumnResult.cs
- MeasureData.cs
- ArgumentFixer.cs
- SessionStateSection.cs
- PropertyManager.cs
- HtmlHead.cs
- BamlMapTable.cs
- XmlEncoding.cs
- TreeView.cs
- ResourceReferenceExpressionConverter.cs
- DiscoveryDocumentSearchPattern.cs
- mediaeventargs.cs
- PathFigureCollectionConverter.cs
- MessageSecurityOverTcp.cs
- ExpanderAutomationPeer.cs
- FillBehavior.cs
- ConnectionManagementElementCollection.cs
- ThreadInterruptedException.cs
- MethodInfo.cs
- LinqDataSourceContextData.cs
- PropertyItemInternal.cs
- InstanceHandleConflictException.cs
- FileSystemWatcher.cs
- ConstraintConverter.cs
- RouteItem.cs
- SignerInfo.cs
- Bookmark.cs
- Authorization.cs
- WindowsRegion.cs
- StatusBarDrawItemEvent.cs
- SmiEventSink_Default.cs
- ObjectPersistData.cs
- TagMapCollection.cs
- SafeFindHandle.cs
- ProcessInputEventArgs.cs
- DnsPermission.cs
- XmlAttributeOverrides.cs
- CopyAttributesAction.cs
- Light.cs
- TreeChangeInfo.cs
- NestPullup.cs
- DataGridViewCellMouseEventArgs.cs
- XLinq.cs
- templategroup.cs
- SourceInterpreter.cs
- Trace.cs
- NativeMethods.cs
- CharacterMetrics.cs
- MembershipUser.cs
- DelegatingConfigHost.cs
- ToolStripSystemRenderer.cs
- ExpressionVisitor.cs
- ResourceDictionary.cs
- CompatibleIComparer.cs
- KeyedCollection.cs
- ResourceExpressionBuilder.cs
- StringInfo.cs
- BooleanExpr.cs
- TextEndOfLine.cs
- TerminatorSinks.cs
- PreviewPageInfo.cs
- OdbcRowUpdatingEvent.cs
- LayoutDump.cs
- DataGridViewLinkCell.cs
- KoreanLunisolarCalendar.cs
- KeysConverter.cs
- WasAdminWrapper.cs
- PackageFilter.cs
- DataGridViewColumnConverter.cs