BudgetAnalyser.Engine.Statement.NamedTransaction.NamedTransaction C# (CSharp) Method

NamedTransaction() public method

Initializes a new instance of the NamedTransaction class.
public NamedTransaction ( string name, bool isDebit = false ) : System
name string The name.
isDebit bool A boolean value to indicate if this transaction type represents a debit. If true, its a debit, otherwise credit, credit is the default value.
return System
        public NamedTransaction(string name, bool isDebit = false)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException(nameof(name));
            }

            this.name = name;
            IsDebit = isDebit;
        }