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 EditorAttributeInfo : AttributeInfo<EditorAttribute>
15 public override ICollection GetConstructorArguments(EditorAttribute attribute, ref ConstructorInfo constructor)
17 return new List<object>() { Type.GetType(attribute.EditorTypeName), Type.GetType(attribute.EditorBaseTypeName) };
20 public override ConstructorInfo GetConstructor()
22 Type editorAttributeType = typeof(EditorAttribute);
23 ConstructorInfo constructor = editorAttributeType.GetConstructor(new Type[] { typeof(Type), typeof(Type) });
24 SharedFx.Assert(constructor != null, "designerAttribute has a constructor that takes two argument of type System.Type and System.Type.");