All pastes #438930 Raw Edit

Arguments

public text v1 · immutable
·published 2007-04-13 22:55 UTC
rendered paste body
using System;

namespace MooseBot
{
    class Arguments
    {
        private string source;
        private string destination;
        private string text;
        private string[] args;

        public string Source { get { return this.source; } }
        public string Destination { get { return this.destination; } }
        public string Text { get { return this.text; } }
        public string[] Args { get { return this.args; } }
        public int Length { get { return this.args.Length; } }
        public string this[int index] { get { return this.args[index]; } }

        public Arguments(string src, string dest, string text, string[] args)
        {
            this.source = src;
            this.destination = dest;
            this.text = text;
            this.args = args;
        }
    }
}