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
- KeyPressEvent.cs
- DynamicField.cs
- StateManagedCollection.cs
- SchemaExporter.cs
- RegexMatch.cs
- hresults.cs
- dbenumerator.cs
- TcpClientChannel.cs
- MoveSizeWinEventHandler.cs
- SchemaCreator.cs
- DataSourceListEditor.cs
- ThumbAutomationPeer.cs
- TextElementAutomationPeer.cs
- OleDbStruct.cs
- PropertyOrder.cs
- HttpInputStream.cs
- ItemChangedEventArgs.cs
- TypeElementCollection.cs
- ArgumentException.cs
- DirectoryInfo.cs
- MsiStyleLogWriter.cs
- XmlTextReaderImplHelpers.cs
- ISAPIWorkerRequest.cs
- SQLByte.cs
- XPathScanner.cs
- MenuItemStyle.cs
- CommentEmitter.cs
- RSAProtectedConfigurationProvider.cs
- HttpCacheParams.cs
- InlineUIContainer.cs
- DataControlExtensions.cs
- TransactionManager.cs
- _Win32.cs
- SHA512Managed.cs
- ListView.cs
- NamedPipeProcessProtocolHandler.cs
- SHA512.cs
- WindowsRegion.cs
- WebEventTraceProvider.cs
- HTMLTagNameToTypeMapper.cs
- BreakRecordTable.cs
- PointAnimationClockResource.cs
- StatusBarAutomationPeer.cs
- RequestCacheManager.cs
- MarginsConverter.cs
- StagingAreaInputItem.cs
- AssertFilter.cs
- String.cs
- BrowserDefinitionCollection.cs
- ReachSerializer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- HttpStreamMessageEncoderFactory.cs
- MarkupExtensionReturnTypeAttribute.cs
- DataGridState.cs
- SubpageParaClient.cs
- PingReply.cs
- QueryableDataSource.cs
- TextRangeEditLists.cs
- DelegatingHeader.cs
- BlockingCollection.cs
- InteropBitmapSource.cs
- DataGridCheckBoxColumn.cs
- CodeBinaryOperatorExpression.cs
- UnSafeCharBuffer.cs
- SimpleRecyclingCache.cs
- HttpPostProtocolImporter.cs
- CodeNamespaceImportCollection.cs
- CheckBox.cs
- TreeView.cs
- HttpInputStream.cs
- MatrixTransform3D.cs
- WindowsServiceElement.cs
- SafeHandles.cs
- RemotingClientProxy.cs
- TemplateControlBuildProvider.cs
- TextTreeUndo.cs
- XmlTextReaderImpl.cs
- Matrix.cs
- loginstatus.cs
- AssociationTypeEmitter.cs
- QilIterator.cs
- SqlUserDefinedAggregateAttribute.cs
- RowToParametersTransformer.cs
- XPathException.cs
- ReliabilityContractAttribute.cs
- DLinqAssociationProvider.cs
- DataTableReaderListener.cs
- PasswordBoxAutomationPeer.cs
- SafeProcessHandle.cs
- SpotLight.cs
- ContainerControl.cs
- XamlStyleSerializer.cs
- VariableBinder.cs
- ProfilePropertyNameValidator.cs
- AssemblyBuilderData.cs
- DashStyles.cs
- datacache.cs
- VolatileEnlistmentMultiplexing.cs
- IriParsingElement.cs
- TransformerConfigurationWizardBase.cs