Example #1
0
        static NesFile.MirroringType GetMirroring(FamicomDumperConnection dumper, IMapper mapper)
        {
            var method = mapper.GetType().GetMethod(
                "GetMirroring", BindingFlags.Instance | BindingFlags.Public,
                null, CallingConventions.Any, new Type[] { typeof(IFamicomDumperConnection) },
                new ParameterModifier[0]);

            if (method == null)
            {
                return(dumper.GetMirroring());
            }
            return((NesFile.MirroringType)method.Invoke(mapper, new object[] { dumper }));
        }