我想使用资源文件发送电子邮件。在我的资源文件中,我使用了一个变量"EmailConfirmation",值为"Hello {userName} ..."。
在我的类中,我使用:
在我的类中,我使用:
public static string message (string userName)
{
return Resource.WebResource.EmailConfirmation
}
问题是返回的内容是 "Hello {userName}" 而不是 "Hello Toto"。