[runtime] Fix corlib out of date error with disabled COM
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / Microsoft.Tools.Common / Microsoft / Activities / Presentation / Xaml / ResolverResult.cs
1 //----------------------------------------------------------------
2 // <copyright company="Microsoft Corporation">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //----------------------------------------------------------------
6
7 namespace Microsoft.Activities.Presentation.Xaml
8 {
9     using System.Collections.Generic;
10
11     internal class ResolverResult
12     {
13         private static ResolverResult unknown = new ResolverResult(XamlTypeKind.Unknown);
14         private static ResolverResult fullySupported = new ResolverResult(XamlTypeKind.FullySupported);
15
16         public ResolverResult(XamlTypeKind kind)
17             : this(kind, null)
18         {
19         }
20
21         public ResolverResult(ICollection<string> newProperties)
22             : this(XamlTypeKind.PartialSupported, newProperties)
23         {
24         }
25
26         private ResolverResult(XamlTypeKind kind, ICollection<string> newProperties)
27         {
28             SharedFx.Assert(kind != XamlTypeKind.PartialSupported || newProperties != null, "newProperties should not be null when kind is XamlTypeKind.PartialSupported");
29
30             this.Kind = kind;
31             this.NewProperties = newProperties;
32         }
33
34         public static ResolverResult Unknown
35         {
36             get { return unknown; }
37         }
38
39         public static ResolverResult FullySupported
40         {
41             get { return fullySupported; }
42         }
43
44         public XamlTypeKind Kind { get; private set; }
45
46         public ICollection<string> NewProperties { get; private set; }
47     }
48 }