blah blah blah is here! blah blah » Close

0
votes
0 answers

Searchable Class Or XML

I have never really been one to do much with XML before and was never really heavy in creating custom classes but the way everything is going its looking like that has to change. So here is what I am trying to do and you tell me what is ...

0
votes
2 answers

How is the key in a hashtable looked up?

Rick_A
761

Internally, how would the key and then the value be retrieved from a hashtable. Are the keys sorted? What sort of big-O would the lookup be?

1
votes
1 answers

How to convert a object[] to a List<SomeType>?

Rick_A
761

I have a collection of type object[] that I need to convert to a generic List of type List<User>. Is this possible in C#?

0
votes
1 answers

newbie question regarding reading from file

cami
30

Hi there, I am using C# and I want to read data from a text file and store it effectively using collections no datasets! I know the basics of how to read from file but for this particular file I can ignore the first 10 lines as they a ...

0
votes
1 answers

How would you write your own Hashtable class without using built-in methods?

Rick_A
761

Curious, how would you go about writing your own custom Hashtable class, without using the build-in c# methods to do this?

0
votes
1 answers

I have a List<int> colleciton I want to convert to a comma seperated string

Rick_A
761

I have a collection of type List<int> that I want to convert to a comma seperated string. What I would normally do is loop through the items and append a ',' to the end, and then I would have to trim the trailing ',' at the end of ...

1
votes
2 answers

Given 2 collections, how to get the intersection? Performance is important.

Rick_A
761

Given 2 collections, now those collections can be int[] or List<int>, how to find the intersection between the 2 collections? By intersection I mean the common int values in both collections. Performance is key here.

1
votes
2 answers

Is it safe to cast an entire collection and assign it to new collection of another type?

I have a List<Articles> collection. The class Articles implements IContent. I want the method to return a collection of IContent, List<IContent>. I want to do something like: List<IContent> content = articlesList ...

0
votes
2 answers

What type of objects can linq work on?

What are the requirements for an object (or collection) to be linq compatible? So for my experience with linq has been with the [url=http://msdn.microsoft.com/en-us/library/6sh2ey19.aspx]List<T>[/url] collection, but what is the ac ...

1
votes
1 answers

How to Filtering a List<int> for all values that are greater than 10

I want to filter a List<int> collection for all items that are greater than 10. I know I can simply do: [code] for(int x = 0; x < myList.Count;x++) { if(x < 10) continue; newList.Add(x); } ...

Feedback