如何覆盖.net中的程序集文件

时间:2013-10-08 09:48:35

标签: asp.net vb.net smtp

从下面的代码我需要替换

带有SmtpMail.SmtpServer = "localhost"

SmtpMail.SmtpServer = ConfigurationManager.AppSettings["SmtpServer"]

 Public Shared Sub SendMailHTML(ToAdd As Object, FromAdd As Object, Message As Object,     Subject As Object)
  Dim msgMail As MailMessage = New MailMessage()
  msgMail.[To] = Conversions.ToString(ToAdd)
  msgMail.From = Conversions.ToString(FromAdd)
  msgMail.Subject = Conversions.ToString(Subject)
  msgMail.Headers.Add("X-Mailer", "ASP.NET")
  msgMail.BodyFormat = MailFormat.Html
  msgMail.Body = Conversions.ToString(Message)
  SmtpMail.SmtpServer = "localhost"
  SmtpMail.Send(msgMail)
 End Sub

我无法访问汇编代码只是编译文件。我也尝试使用不同的反编译器反编译和重新编译程序集,但是会出现太多错误。只是想知道我们是否可以创建一个新文件并覆盖它

0 个答案:

没有答案