C# Static types cannot be used as parameters

前端 未结 8 2630
被撕碎了的回忆
被撕碎了的回忆 2021-02-18 13:22
public static void SendEmail(String from, String To, String Subject, String HTML, String AttachmentPath = null, String AttachmentName = null, MediaTypeNames AttachmentTy         


        
8条回答
  •  走了就别回头了
    2021-02-18 13:38

    Use a different type for the argument.

    A method argument needs to be of a type that can accept a reference to an instance, so it can't be a static class.

提交回复
热议问题