+ Reply to Thread
Results 1 to 2 of 2

Thread: Reduce code lines

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    7

    Reduce code lines

    I have a Homework and i am quite new to C# , i got that code and the aim here is to minimize it so it can be written on one line only :
    Code:
    ResponseList RL= new ResponseList();
    PagedResponseList PRL = new PagedResponseList();
    RL = responseService.ListSurveyResponses(1000);
    PRL = RL.ResultData;

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    8
    You can reduce that by following the below code :
    Code:
    var pagedResponsesList = responseService.ListSurveyResponses(1000).ResultData;

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts