2 // Copyright (c) Microsoft Corporation. All rights reserved.
5 namespace Microsoft.Activities.Presentation.Xaml
8 using System.Collections;
9 using System.Collections.Generic;
10 using System.ComponentModel;
11 using System.Reflection;
13 class DesignerAttributeInfo : AttributeInfo<DesignerAttribute>
15 public override ICollection GetConstructorArguments(DesignerAttribute attribute, ref ConstructorInfo constructor)
17 return new List<object>() { Type.GetType(attribute.DesignerTypeName) };
20 public override ConstructorInfo GetConstructor()
22 Type designerAttributeType = typeof(DesignerAttribute);
23 ConstructorInfo constructor = designerAttributeType.GetConstructor(new Type[] { typeof(Type) });
24 SharedFx.Assert(constructor != null, "designerAttribute has a constructor that takes an argument of type System.Type.");