Фрагмент кода для создания конструктора в VS2010 Express

Есть ли готовый к использованию фрагмент кода в VS 2010 Express edition (для C #), чтобы создать конструктор с параметрами из выбранных свойств?

Когда я создаю новый класс и пишу следующий код:

public class FileDetails
{
    public int ID { get; set; }
    public string FileName { get; set; }
    public string FilePath { get; set; }
    public DateTime LastWriteTime { get; set; }
    public FileStatus LastFileStatus { get; set; }
    public NotifyIfFileNotExists NotifyIfFileNotExists { get; set; }
    public string RecepientsEmailList { get; set; }
    public string AdminEmailList { get; set; }

    public FileDetails()
    {
    }
}

Я хотел бы выделить мышью все общедоступные свойства (или поместить какой-нибудь фрагмент кода), которые создают для меня следующий коструктор:

public FileDetails(int id, string fileName, string filePath, DateTime lastWriteTime, FileStatus lastFileStatus, NotifyIfFileNotExists notifyIfFileNotExists, string recepientsEmailList, string adminEmailList)
{
    this.ID = id;
    this.FileName = fileName;
    this.FilePath = filePath;
    this.LastWriteTime = lastWriteTime;
    this.LastFileStatus = LastFileStatus;
    this.NotifyIfFileNotExists = notifyIfFileNotExists;
    this.RecepientsEmailList = recepientsEmailList;
    this.AdminEmailList = adminEmailList;
}

Вопрос : есть ли готовое решение для этого или, если нет, есть ли у кого-нибудь идея или готовый код, как этого добиться?

С уважением,
Марцин

6
задан mj82 18 October 2011 в 15:21
поделиться