Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

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
}