BattleInfoPlugin.Models.GetItemTypeExtensions.ToDisplayName C# (CSharp) Метод

ToDisplayName() публичный статический Метод

public static ToDisplayName ( this type ) : string
type this
Результат string
        public static string ToDisplayName(this ItemType type)
        {
            switch (type)
            {
                case ItemType.Fuel:
                    return "燃料";
                case ItemType.Ammo:
                    return "弾薬";
                case ItemType.Steel:
                    return "鋼材";
                case ItemType.Bauxite:
                    return "ボーキ";
                case ItemType.FlameThrower:
                    return "高速建造材";
                case ItemType.Bucket:
                    return "高速修復材";
                case ItemType.BuildKit:
                    return "開発資材";
                case ItemType.SBox:
                    return "家具箱(小)";
                case ItemType.MBox:
                    return "家具箱(中)";
                case ItemType.LBox:
                    return "家具箱(大)";
                case ItemType.PresentBox:
                    return "プレゼント箱";
            }
            return type.ToString();
        }
GetItemTypeExtensions