e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
namespace System.Workflow.ComponentModel.Serialization
|
|
{
|
|
using System;
|
|
using System.Xml;
|
|
using System.Reflection;
|
|
using System.Workflow.ComponentModel.Design;
|
|
using System.ComponentModel.Design.Serialization;
|
|
using System.Text;
|
|
using System.Diagnostics;
|
|
using System.ComponentModel;
|
|
using System.Collections.Generic;
|
|
|
|
#region Class BindMarkupExtensionSerializer
|
|
internal class BindMarkupExtensionSerializer : MarkupExtensionSerializer
|
|
{
|
|
protected override InstanceDescriptor GetInstanceDescriptor(WorkflowMarkupSerializationManager serializationManager, object value)
|
|
{
|
|
ActivityBind activityBind = value as ActivityBind;
|
|
if (activityBind == null)
|
|
throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(ActivityBind).FullName), "value");
|
|
return new InstanceDescriptor(typeof(ActivityBind).GetConstructor(new Type[] { typeof(string) }),
|
|
new object[] { activityBind.Name });
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
}
|