// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections; namespace Arne.Remoting.Common { [Serializable] public class Record { private int f1; private string f2; public Record() : this(0, "") { } public Record(int f1, string f2) { this.f1 = f1; this.f2 = f2; } public int F1 { get { return f1; } set { f1 = value; } } public string F2 { get { return f2; } set { f2 = value; } } public override string ToString() { return ("(" + f1 + "," + f2 + ")"); } } public interface IClientServer { Record GetOne(int f1); ArrayList GetAll(); void Insert(Record rec); } }