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
- EditorBrowsableAttribute.cs
- ConfigurationSectionCollection.cs
- FixedBufferAttribute.cs
- RegistryKey.cs
- SharedStatics.cs
- AttributeTable.cs
- RotateTransform.cs
- baseaxisquery.cs
- Rectangle.cs
- WebExceptionStatus.cs
- LightweightCodeGenerator.cs
- HttpWebRequest.cs
- JobDuplex.cs
- XmlAggregates.cs
- RefreshEventArgs.cs
- ImmComposition.cs
- WebEventCodes.cs
- ObjectPersistData.cs
- WindowsFormsHost.cs
- URIFormatException.cs
- Int16AnimationBase.cs
- GlyphsSerializer.cs
- EventItfInfo.cs
- URIFormatException.cs
- SqlBulkCopy.cs
- FilterableAttribute.cs
- GrowingArray.cs
- TypeDescriptor.cs
- input.cs
- AnnotationElement.cs
- DrawingImage.cs
- XPathParser.cs
- KeyValueSerializer.cs
- CellIdBoolean.cs
- BindingExpression.cs
- OleDbFactory.cs
- CurrentChangingEventArgs.cs
- ReceiveContent.cs
- TypeInitializationException.cs
- PerfService.cs
- _NetRes.cs
- CountdownEvent.cs
- XmlFormatWriterGenerator.cs
- Page.cs
- Switch.cs
- BuildResultCache.cs
- DataGridViewButtonCell.cs
- WebBrowserHelper.cs
- SqlReferenceCollection.cs
- StatusBarPanelClickEvent.cs
- ISFClipboardData.cs
- DataSvcMapFileSerializer.cs
- BinaryExpressionHelper.cs
- Char.cs
- BrowserTree.cs
- FieldCollectionEditor.cs
- XmlAttributeAttribute.cs
- DependencyObjectProvider.cs
- BinaryCommonClasses.cs
- IfAction.cs
- FileUtil.cs
- DefaultSection.cs
- OleAutBinder.cs
- SmtpFailedRecipientsException.cs
- PrintPreviewGraphics.cs
- EditorPart.cs
- StorageInfo.cs
- SessionPageStatePersister.cs
- MultiPropertyDescriptorGridEntry.cs
- RegistrationServices.cs
- TranslateTransform3D.cs
- CreateUserWizardStep.cs
- CompatibleIComparer.cs
- DynamicScriptObject.cs
- TextSelectionHighlightLayer.cs
- XhtmlStyleClass.cs
- StrokeNodeOperations.cs
- ThicknessAnimationUsingKeyFrames.cs
- OleDbCommand.cs
- sqlser.cs
- BufferedGenericXmlSecurityToken.cs
- QuaternionRotation3D.cs
- FixedPageProcessor.cs
- DataTableReader.cs
- ResourceReader.cs
- Int64AnimationBase.cs
- SchemaAttDef.cs
- MailAddressCollection.cs
- EventTrigger.cs
- StylusPlugInCollection.cs
- SHA384Managed.cs
- CollectionBuilder.cs
- DeploymentExceptionMapper.cs
- PrivilegedConfigurationManager.cs
- DatatypeImplementation.cs
- XDRSchema.cs
- HelpProvider.cs
- SslStream.cs
- LookupNode.cs
- SmiTypedGetterSetter.cs