编程有时候我们需要给方法返回一个值 但由于需要返来多个 所有 可以定义一个类

using System;
using System.Collections.Generic;
using System.Text;

namespace APlusEmail.Model
{
    public class EmailSendFeedBack
    {
        private bool isSuccess;

        public bool IsSuccess
        {
            get { return isSuccess; }
            set { isSuccess = value; }
        }
        private string info;

        public string Info
        {
            get { return info; }
            set { info = value; }
        }
    }
}
原文地址:https://www.cnblogs.com/maijin/p/2823655.html