コード例 #1
0
        public static void Demonstrate()
        {
            IStruct si     = new StructImpl();
            int     result = si.Add(10, 5);

            System.Console.WriteLine($"The result is {result}");
        }
コード例 #2
0
ファイル: Dispose.cs プロジェクト: KFAFSP/Whetstone.Core
        public void Action_StructImpl_MethodAction()
        {
            var obj    = new StructImpl();
            var action = Dispose <StructImpl> .Action;

            Assert.That(action, Is.Not.Null);
            action(ref obj);
            Assert.That(obj.IsDisposed);
        }