blah blah blah is here! blah blah » Close

0
votes
1 answers

C# Pass by Reference Confusion

So I am trying to update a list but outside of the scope the for loop the list looses it's value. I thought about it and said ah yes that is because the object is sent by value and not reference so I made a few changes to pass it by referen ...

0
votes
0 answers

intelligent sorting list c#

my code : [code] IEnumerable<Blob> bb = from element in bloblist let locationx = element.Rectangle.X let locationy = element.Rectangle.Y orderby locationy ascending ,locationx descending select element; fore ...

0
votes
0 answers

Linked List

Hi, I'm new in C# and I'm learning to build my own linked lists i've build 3 linked lists book: where I keep a nr of a book and the title person where I keeps the number of a person and name Score where I keep the number of ...

0
votes
1 answers

Anybody know how to add an item to a combo box in excel? Everything I do doesn't work.

I'm getting so frustrated. [code] Sub AddRandomItemsToDropDownList() Dim ws As Worksheet Set ws = ThisWorkbook.Worksheets("Summary") Sheets("Summary").Select With Me.ComboBox1 ...

1
votes
2 answers

How can i convert List<customobject> to List<object>?

Hi, i want to convert List<customobject> to List<object>? code i've used is: public class Report { public Report(string strRepId, string strRepName) { strReportId = strRepId; ...

0
votes
1 answers

I am trying to implement cascading Drop downs in C#

Hi, I am trying to implement Cascading Drop down lists (output of one drop down depends on the value selected in the first dropdown) in C# using visual Studio ultimate 2010.My dtabase was created with the visual studio itself and i can eas ...

0
votes
1 answers

C# List view Highlight specific text (not the whole cell)

I have a listview Item with some data filled in it and if a search is triggered and result should be highlighted for the specific key words. for example, if 'London' is the search keyword, and the result list view is shown below. I wa ...

2
votes
2 answers

List with KeyValuePair and duplicate keys?

cami
30

Hi all, if I create a list like the one as below: [code] List<KeyValuePair<string, string>> list = new List<KeyValuePair<string, string>>(); [/code] Can the same key have multiple values? as in to say, can ...

0
votes
3 answers

better way to search a list of classes?

Suppose I have a class. [code]public class MyClass { public int ID; public string UniqueIdentifier; public bool Enable; ... // more public vars public MyClass Parse(string parseFrom) { ... // pars ...

0
votes
0 answers

Download list

hello, i think most of you use an ftp or download manager , most of this softwares have list which upload or download tow items in one time like this: [img]http://www.queensu.ca/its/software/filezilla/tutorial/filezilla.jpg[/img] [img] ...

1
votes
1 answers

newbie question ASP.NET/C#

I'm reading a book about ASP.NET and I see some code I can't quite figure out. in the .aspx there is a [code]<select id="Currency" runat="server"></select>[/code] Then in the .aspx.cs [code]Currency. ...

0
votes
3 answers

Null Element in a Generic List

Hi I want to create a class that will get a custom type generic list and will add an value of 0 in a specified element. To be more clear here is an example: I have the following: public class Clients { public int Clie ...

1
votes
1 answers

List question

How can I do the following using a inherited class? Thanks Jeff namespace question { public class Dog { public string Breed { get; set; } } public class Dogs : List<Dog> { } ...

2
votes
1 answers

style and efficiency question: arrays versus List<generic>

I find that I practically never use arrays anymore because of the potential waste of memory from having to declare arrays more than large enough. Another reason is because arrays look old fashioned to me. List<> seems to have largel ...

0
votes
3 answers

Pass By Reference

eeboy
499

I created a method which accepts a parameter of type List<T>. The method then does some operations which fill this list. Single stepping in debug I can see that it does this correctly. However, when it returns from the method all the ...

Feedback