mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
459 B
19 lines
459 B
// <copyright file="EnumHelper.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageSharp.Tests
|
|
{
|
|
using System;
|
|
|
|
public class EnumHelper
|
|
{
|
|
public static T[] GetSortedValues<T>()
|
|
{
|
|
T[] vals = (T[])Enum.GetValues(typeof(T));
|
|
Array.Sort(vals);
|
|
return vals;
|
|
}
|
|
}
|
|
}
|
|
|