1

我正在 mvc3 上建立一个站点(并且喜欢新语法!)。我正在使用常量创建电子邮件功能。但是,我对使用公共属性/常量感到茫然。我知道使用 WebForms 我们可以在后面的代码中添加一个公共属性。但我正在努力做到这一点。

 public const string ImportantNoticeForEmployers =
            @"<span style=""font-size:12px;line-height:1.5"">" +
            @"<b>Important Notice for Employers<b><br><br>" +
            @"The Information on xxxxxxxxxxx<br><br>" +
            @"</span>";

  private const string EmployerDisclaimer =
           @"<span style=""font- size:13px;font-family:arial,sans serif;line-height: 1.5"">" +
           @"<b>::Disclaimer::</b><br><br> " +
           @"By your positive acts of registering on xxxxxx.Login details are required to delete the account)" +
           @"</span";

我必须将这个私有方法称为每个公共方法。谁能帮我这个?提前致谢。

4

0 回答 0