5f0b9fbdeb63c1760fbab4d02e703b5ada8257bf
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Base / Interaction / Model / EnumValidator.cs
1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //-----------------------------------------------------------------------------
4
5 namespace System.Activities.Presentation.Model
6 {
7     using System;
8
9     // <summary>
10     // Class containing a single IsValid() method that ensures
11     // that the given public enum is of expected value.  Use this
12     // method to validate the enum value of all publicly exposed setters.
13     // </summary>
14     internal static partial class EnumValidator
15     {
16         public static bool IsValid(CreateOptions value)
17         {
18             return value == CreateOptions.None || value == CreateOptions.InitializeDefaults;
19         }
20
21     }
22 }