[corlib] Update ValueTuple implementation
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / Microsoft.Tools.Common / Microsoft / Activities / Presentation / Xaml / DesignerAttributeInfo.cs
1 // <copyright>
2 //   Copyright (c) Microsoft Corporation.  All rights reserved.
3 // </copyright>
4
5 namespace Microsoft.Activities.Presentation.Xaml
6 {
7     using System;
8     using System.Collections;
9     using System.Collections.Generic;
10     using System.ComponentModel;
11     using System.Reflection;
12
13     class DesignerAttributeInfo : AttributeInfo<DesignerAttribute>
14     {
15         public override ICollection GetConstructorArguments(DesignerAttribute attribute, ref ConstructorInfo constructor)
16         {
17             return new List<object>() { Type.GetType(attribute.DesignerTypeName) };
18         }
19
20         public override ConstructorInfo GetConstructor()
21         {
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.");
25             return constructor;
26         }
27     }
28 }