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
- PriorityBindingExpression.cs
- SchemaTableColumn.cs
- ServerIdentity.cs
- DictionaryManager.cs
- UserPrincipalNameElement.cs
- ToolStripDropDownDesigner.cs
- InputLangChangeEvent.cs
- IdentityHolder.cs
- RelationshipDetailsRow.cs
- ClientScriptManagerWrapper.cs
- BamlTreeUpdater.cs
- RepeaterItemCollection.cs
- NativeMethods.cs
- shaperfactoryquerycachekey.cs
- FixedSOMPage.cs
- ContainerAction.cs
- TypeUsageBuilder.cs
- RelationshipWrapper.cs
- X509AsymmetricSecurityKey.cs
- CodeCommentStatementCollection.cs
- InputMethodStateChangeEventArgs.cs
- SymbolMethod.cs
- XpsFilter.cs
- AdRotatorDesigner.cs
- CheckBox.cs
- __TransparentProxy.cs
- FrameworkName.cs
- MenuStrip.cs
- RuleProcessor.cs
- RuntimeHandles.cs
- SurrogateChar.cs
- WizardSideBarListControlItem.cs
- ControlAdapter.cs
- ResourcesBuildProvider.cs
- DataSetMappper.cs
- URI.cs
- BitmapImage.cs
- TypeGeneratedEventArgs.cs
- XmlSchemaObjectTable.cs
- WorkItem.cs
- DescendentsWalkerBase.cs
- CorrelationActionMessageFilter.cs
- WindowsSysHeader.cs
- AuthorizationRuleCollection.cs
- DbProviderFactory.cs
- LogSwitch.cs
- JournalNavigationScope.cs
- NetCodeGroup.cs
- KerberosTicketHashIdentifierClause.cs
- SocketStream.cs
- ResourceWriter.cs
- StylusPointPropertyId.cs
- HMAC.cs
- ClientConfigurationSystem.cs
- Array.cs
- ClientConfigPaths.cs
- SecurityTokenException.cs
- TransformProviderWrapper.cs
- DataObject.cs
- RegionIterator.cs
- Inflater.cs
- WindowsListViewItem.cs
- XmlResolver.cs
- PageWrapper.cs
- EdmProviderManifest.cs
- DesigntimeLicenseContext.cs
- GetCryptoTransformRequest.cs
- SettingsProperty.cs
- Journal.cs
- ToolStripDropDownClosingEventArgs.cs
- ExceptionHandler.cs
- ConstructorNeedsTagAttribute.cs
- DataBinder.cs
- AsymmetricCryptoHandle.cs
- DirectionalLight.cs
- VariableQuery.cs
- ResourceDefaultValueAttribute.cs
- ProcessHost.cs
- OrderByBuilder.cs
- ThrowHelper.cs
- Tuple.cs
- TextLine.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- StructuralObject.cs
- TaskbarItemInfo.cs
- TransformValueSerializer.cs
- Perspective.cs
- BufferedGraphicsContext.cs
- WorkflowCreationContext.cs
- DataControlFieldCollection.cs
- DependencyPropertyKind.cs
- LocationUpdates.cs
- DynamicArgumentDesigner.xaml.cs
- SerializationStore.cs
- DefaultPrintController.cs
- ServiceSecurityContext.cs
- DesignerSerializerAttribute.cs
- AutomationEventArgs.cs
- Guid.cs
- TemplateBindingExpression.cs