コード例 #1
0
        private IEnumerable <ChainParticipant> GetParticipants()
        {
            var participants = new List <ChainParticipant>();

            var participant = new ChainParticipant(null, companies.First());

            participants.Add(participant);

            foreach (var company in companies.Skip(1))
            {
                participant = new ChainParticipant(participant, company);
                participants.Add(participant);
            }

            return(participants);
        }
コード例 #2
0
 public ChainParticipant(ChainParticipant previousParticipant, NPReportCompany company)
 {
     this.previousParticipant = previousParticipant;
     Company = company;
 }