...
This commit is contained in:
@@ -12,6 +12,11 @@ namespace Back.Common
|
||||
{
|
||||
public static class ExtentionMethods
|
||||
{
|
||||
public static List<T> Clone<T>(this IList<T> listToClone) where T : ICloneable
|
||||
{
|
||||
return listToClone.Select(item => (T)item.Clone()).ToList();
|
||||
}
|
||||
|
||||
public static string GetEnumDisplayName(this Enum enumType)
|
||||
{
|
||||
return enumType.GetType().GetMember(enumType.ToString())
|
||||
|
Reference in New Issue
Block a user