예제 #1
0
 public OutputRow(InputRow r, string book)
 {
     Book                  = book.Trim();
     Address               = r.Address;
     Address2              = r.Address2;
     BlogURL               = r.BlogURL;
     City                  = r.City;
     EMailAddress          = r.EMailAddress;
     Name                  = r.Name;
     NetGalleyEMailAddress = r.NetGalleyEMailAddress;
     State                 = r.State;
     Timestamp             = r.Timestamp;
     ZipCode               = r.ZipCode;
 }
예제 #2
0
        public static IEnumerable <OutputRow> ConvertFromInput(InputRow r)
        {
            var middles = r.MiddleGrade.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var book in middles)
            {
                yield return(new OutputRow(r, book));
            }

            var yas = r.YoungAdult.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var book in yas)
            {
                yield return(new OutputRow(r, book));
            }

            var pictures = r.PictureBooks.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var book in pictures)
            {
                yield return(new OutputRow(r, book));
            }
        }