Mono.Cecil.Tests.TypeTests.ExplicitThis C# (CSharp) Method

ExplicitThis() private method

private ExplicitThis ( ) : void
return void
        public void ExplicitThis()
        {
            TestIL ("explicitthis.il", module => {
                var type = module.GetType ("MakeDecision");
                var method = type.GetMethod ("Decide");
                var fptr = method.ReturnType as FunctionPointerType;

                Assert.IsNotNull (fptr);
                Assert.IsTrue (fptr.HasThis);
                Assert.IsTrue (fptr.ExplicitThis);

                Assert.AreEqual (0, fptr.Parameters [0].Sequence);
                Assert.AreEqual (1, fptr.Parameters [1].Sequence);
            }, verify: false);
        }