System.Tests.DelegateTests.DynamicInvoke_DefaultParameter_ReferenceTypeParameterWithExplicitValue C# (CSharp) Method

DynamicInvoke_DefaultParameter_ReferenceTypeParameterWithExplicitValue() private method

        public static void DynamicInvoke_DefaultParameter_ReferenceTypeParameterWithExplicitValue()
        {
            CustomReferenceType referenceInstance = new CustomReferenceType();
            Assert.Same(
                referenceInstance,
                (new ReferenceWithDefaultValue(ReferenceMethod)).DynamicInvoke(new object[] { referenceInstance }));
        }
DelegateTests