using System;
namespace Common.Infrastructure
{
// Utility class used for grabbing an enum value from a string
///
/// The type of enum.
public static class Enum
{
private const bool IGNORE_CASE = true;
///
/// Extracts an enum value based on a string value.
///
/// Value to parse.
///
public static T Parse(string value)
{
return (T)Enum.Parse(typeof(T), value, IGNORE_CASE);
}
}
}