Exemplo n.º 1
0
        public void DelegateWithOutParametersInDynamicNamedArgumentInvocation()
        {
            ActionWithOut <int, string> act = (int input, out string output) => output = input.ToString();
            dynamic d = act;

            d(output: out string res, input: 23);
            Assert.Equal("23", res);
        }
Exemplo n.º 2
0
        public void DelegateWithOutParameterInDynamic()
        {
            ActionWithOut <int, string> act = (int input, out string output) => output = input.ToString();
            dynamic d = act;

            d(23, out string res);
            Assert.Equal("23", res);
        }