Click here to Skip to main content
15,887,821 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
Keith Barrow11-Sep-13 2:40
professionalKeith Barrow11-Sep-13 2:40 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
babak1411-Sep-13 5:27
babak1411-Sep-13 5:27 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
Pete O'Hanlon11-Sep-13 5:38
mvePete O'Hanlon11-Sep-13 5:38 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
babak1411-Sep-13 5:53
babak1411-Sep-13 5:53 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
Pete O'Hanlon11-Sep-13 6:31
mvePete O'Hanlon11-Sep-13 6:31 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
babak1411-Sep-13 7:25
babak1411-Sep-13 7:25 
GeneralRe: How can I solve thiss error : "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" Pin
Pete O'Hanlon11-Sep-13 7:55
mvePete O'Hanlon11-Sep-13 7:55 
Questionreading table from csv Pin
Member 1026649411-Sep-13 0:17
Member 1026649411-Sep-13 0:17 
<pre lang="css">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ConsoleApplication1
{
    public class Building
    {

           // csv File contains :


            //Id    X   Y
            //0 91  57
            //1 67  24
            //2 27  27
            //3 97  56
            //4 25  19
            //5 95  18
            //6 5   69
            //7 46  94
            //8 29  68
            //9 92  28


            int[] list1  = new int[3] { 0, 91, 57 };
            int[] list2  = new int[3] { 1, 67, 24 };
            int[] list3  = new int[3] { 2, 27, 27 };
            int[] list4  = new int[3] { 3, 97, 56 };
            int[] list5  = new int[3] { 4, 25, 19 };
            int[] list6  = new int[3] { 5, 95, 18 };
            int[] list7  = new int[3] { 6, 5, 69 };
            int[] list8  = new int[3] { 7, 46, 94 };
            int[] list9  = new int[3] { 8, 29, 68 };
            int[] list10 = new int[3] { 9, 92, 28 };

            //int[][][] lists = new int[][][] { list1, list2, list3, list4, list5, list6, list7, list8, list9, list10 };



           for (int i = 0; i < 4; i++)
            {

                int numberIn = list1[i];
                System.Console.WriteLine(numberIn);

            }


    }
}


I wish to modify this class to allow me to read a csv file in and present an array of arrays that can be returned to a 'stem' class. What is the simplist code that will achieve this please?
AnswerRe: reading table from csv Pin
Pete O'Hanlon11-Sep-13 3:37
mvePete O'Hanlon11-Sep-13 3:37 
AnswerRe: reading table from csv Pin
Bernhard Hiller11-Sep-13 3:37
Bernhard Hiller11-Sep-13 3:37 
Questionworking out a triangle hypotenuse Pin
Member 1026649410-Sep-13 23:56
Member 1026649410-Sep-13 23:56 
AnswerRe: working out a triangle hypotenuse Pin
Anurag Sinha V11-Sep-13 0:12
Anurag Sinha V11-Sep-13 0:12 
GeneralRe: working out a triangle hypotenuse Pin
Member 1026649411-Sep-13 0:22
Member 1026649411-Sep-13 0:22 
GeneralRe: working out a triangle hypotenuse Pin
Anurag Sinha V11-Sep-13 0:39
Anurag Sinha V11-Sep-13 0:39 
AnswerRe: working out a triangle hypotenuse Pin
BillWoodruff12-Sep-13 16:33
professionalBillWoodruff12-Sep-13 16:33 
QuestionC# Pin
Member 1026649410-Sep-13 23:11
Member 1026649410-Sep-13 23:11 
AnswerRe: C# Pin
Pete O'Hanlon10-Sep-13 23:19
mvePete O'Hanlon10-Sep-13 23:19 
GeneralRe: C# Pin
Member 1026649411-Sep-13 0:27
Member 1026649411-Sep-13 0:27 
GeneralRe: C# Pin
Pete O'Hanlon11-Sep-13 1:38
mvePete O'Hanlon11-Sep-13 1:38 
GeneralRe: C# Pin
Member 1026649411-Sep-13 1:59
Member 1026649411-Sep-13 1:59 
GeneralRe: C# Pin
Pete O'Hanlon11-Sep-13 2:51
mvePete O'Hanlon11-Sep-13 2:51 
GeneralRe: C# Pin
Keith Barrow11-Sep-13 2:20
professionalKeith Barrow11-Sep-13 2:20 
GeneralRe: C# Pin
Member 1026649411-Sep-13 1:34
Member 1026649411-Sep-13 1:34 
QuestionlistViewNV_KeyPress function it does not run ? Pin
Member 245846710-Sep-13 22:51
Member 245846710-Sep-13 22:51 
AnswerRe: listViewNV_KeyPress function it does not run ? Pin
Richard MacCutchan10-Sep-13 23:04
mveRichard MacCutchan10-Sep-13 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.