blah blah blah is here! blah blah » Close

0
votes
1 answers

I'm getting the following error 'System.InvalidCastException'

public class X { public string Main; public A[] a; } public class A { public B Charge; public C Concession; public D Payment; //public A(); } public class B { public string Detail; public string Code; //public B(); } ...

0
votes
1 answers

a return keyword must not be followed by an object expression

hi how is it possible to return an arrayList from this: private void btnResult_Click(object sender, EventArgs e) { ArrayList arlist = new ArrayList(); arlist.Add(examResults); return arlist; } Many Thanks

0
votes
1 answers

ArrayList Memory Allocation

Hi Everyone, I am new in C#. My question is "How ArrayList is stored in memory?". Is it contineous or scattered.

0
votes
1 answers

Using class.cs in form application

Hi all I'm trying to learn more about arraylist and how to use class.cs files, and I'm really stucked right now and would appreciate some help from you. I have a win form with 2 textboxes and 2 buttons and a few labels. I enter a surname ...

1
votes
2 answers

Converting an array to an comma seperated string

If I have an arraylist like: [code] ArrayList al = new ArrayList(); al.Add("hello"); al.Add("asdf"); al.Add("blah"); [/code] I want to convert the array to a comma seperated string like: [code] ...

1
votes
0 answers

System.InvalidCastException: InvalidCastException

Hi, I am trying to call a web service and return the results in an ArrayList. I'm petty much at a standstill with a casting issue. Here is the function that call the webservice and the error. Using Windows CE Thanks! [code]pub ...

Feedback