// 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.AddIn; using TestAddInView; namespace TestImpl1 { [AddIn("Test AddIn", Version="1.0.0.0")] public class Test2 : ITestAddInView { private static readonly Random rng = new Random(); public int Version { get { return 1; } } public int ThrowDice() { return rng.Next(6) + 1; } } }