AccountType.TypeName C# (CSharp) Méthode

TypeName() public static méthode

public static TypeName ( int TypeNo ) : string
TypeNo int
Résultat string
    public static string TypeName(int TypeNo)
    {
        switch (TypeNo)
        {
            case 0: return "Not Used";
            case 1: return "AccountsReceivable";
            case 2: return "AccountsPayable";
            case 3: return "Income";
            case 4: return "Expense";
            case 5: return "Other";
            default: return "Normal";
        }
    }
AccountType