1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //-----------------------------------------------------------------------------
5 namespace System.Activities.Presentation.Model
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.
14 internal static partial class EnumValidator
16 public static bool IsValid(CreateOptions value)
18 return value == CreateOptions.None || value == CreateOptions.InitializeDefaults;