如何在函数中动态传递资源键值 - C#

问题描述

我想动态地将资源键值传递给函数

public void Assert(string key){
                string title = String.Format(Resource.Resources.{key},4,12);
                AssertionHelper.AssertTextPresentPage(TitleText,title);
            }
            public static void Continue() {
           
                enterMobileNumber.Assert("Login_WelcomeMessage_MultiPlan_FromZeroAPR");
     
            }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)