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
- XmlUnspecifiedAttribute.cs
- TableLayoutColumnStyleCollection.cs
- DataServiceCollectionOfT.cs
- MenuItemAutomationPeer.cs
- CaretElement.cs
- SchemaImporterExtension.cs
- _NegotiateClient.cs
- HWStack.cs
- ToolboxItemWrapper.cs
- ScrollData.cs
- SamlSubject.cs
- SqlFacetAttribute.cs
- unsafenativemethodstextservices.cs
- WebPartHelpVerb.cs
- TypeDefinition.cs
- BinaryObjectWriter.cs
- mediapermission.cs
- XamlTreeBuilder.cs
- NullableFloatSumAggregationOperator.cs
- SettingsAttributeDictionary.cs
- _SslStream.cs
- SafeThreadHandle.cs
- DiscreteKeyFrames.cs
- Point3DAnimation.cs
- BitmapFrameDecode.cs
- DBBindings.cs
- SecurityUtils.cs
- ContentValidator.cs
- TableLayoutPanelCodeDomSerializer.cs
- SemanticValue.cs
- Condition.cs
- ControlEvent.cs
- XmlSchemaGroupRef.cs
- HttpHeaderCollection.cs
- BooleanFunctions.cs
- CodeBlockBuilder.cs
- ScrollPatternIdentifiers.cs
- MD5CryptoServiceProvider.cs
- ElementAction.cs
- ToolStripDropDownButton.cs
- CategoryNameCollection.cs
- SerializationInfoEnumerator.cs
- NameNode.cs
- Connector.xaml.cs
- ShapeTypeface.cs
- ReliableInputConnection.cs
- TextBoxAutomationPeer.cs
- DefaultPropertyAttribute.cs
- ApplicationSecurityInfo.cs
- CqlGenerator.cs
- CodeEventReferenceExpression.cs
- ClientApiGenerator.cs
- SetStateDesigner.cs
- OciHandle.cs
- TextChangedEventArgs.cs
- PasswordPropertyTextAttribute.cs
- TranslateTransform3D.cs
- EmbeddedMailObject.cs
- LoadedOrUnloadedOperation.cs
- SwitchAttribute.cs
- WindowsGraphics.cs
- ProfilePropertyNameValidator.cs
- SelectionRangeConverter.cs
- SystemIPInterfaceProperties.cs
- GrammarBuilderRuleRef.cs
- AsyncCodeActivity.cs
- StrongTypingException.cs
- ImageField.cs
- MexHttpBindingCollectionElement.cs
- SiteMapNodeItemEventArgs.cs
- ChangePassword.cs
- SQLBinary.cs
- CalendarDataBindingHandler.cs
- WmlPageAdapter.cs
- MessageDirection.cs
- AutoGeneratedFieldProperties.cs
- DeobfuscatingStream.cs
- BridgeDataReader.cs
- TableRow.cs
- ZipIOBlockManager.cs
- odbcmetadatacollectionnames.cs
- ContextInformation.cs
- SafeFreeMibTable.cs
- PartialTrustVisibleAssemblyCollection.cs
- ListViewItemMouseHoverEvent.cs
- WsatAdminException.cs
- Mutex.cs
- KeySpline.cs
- DecimalAnimation.cs
- WebScriptMetadataMessageEncoderFactory.cs
- CurrencyManager.cs
- IResourceProvider.cs
- SQLString.cs
- IndexingContentUnit.cs
- IndexOutOfRangeException.cs
- SqlDependency.cs
- StylusCaptureWithinProperty.cs
- ActivationServices.cs
- IPEndPoint.cs
- HashAlgorithm.cs