File: System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EnumValidator.cs
Project: ndp\cdf\src\NetFx40\Tools\System.Activities.Presentation.csproj (System.Activities.Presentation)
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
 
namespace System.Activities.Presentation.PropertyEditing
{
    using System;
 
    // <summary>
    // Class containing a single IsValid() method that ensures
    // that the given public enum is of expected value.  Use this
    // method to validate the enum value of all publicly exposed setters.
    // </summary>
    internal static partial class EnumValidator
    {
        public static bool IsValid(PropertyValueExceptionSource value)
        {
            return value == PropertyValueExceptionSource.Get || value == PropertyValueExceptionSource.Set;
        }
    }
}