However if you posted your entire codebase and someone fixed/finished it for you, you're screwed. Getting help from other professionals (however strenous the term professional is) is not cheating.
@Mhjr If he's determined to mark you down for something as silly as getting help from some guys on the internet, pretend like he touched your willy.
And when it doesn't stick he'll have to mark your work fairly because if he ever tried to screw you over again you could dispute it saying he's being unprofessional because of a personal dispute affecting his marking of your work.
@Maverik No I'm just mis-reading everything I've written previously. I thought I had checked for a null and carried on afterwards anyway. Which I didn't
@Mhjr I doubt you are doomed. Unless you actually cheated, you've got nothing to worry about. If you have valid reasons for why you may have said something about them (maybe medical reasons or something, I dunno) you have even less to be worried about.
Yeah. MSDN is like the coolest collection of language reference material that I've yet to find. It's not quite complete, nor is it entirely accurate in all situations, but it's close.
I've seen in visual studio (c#) something like SortedList. However, I don't know how does it work and how to use it. I want to use SortedList because I hope it has got fastest access time than a normal list. Unfortunately, I can't use array. I'd be glad to see some simple example.
edit:
Let's sa...
I'd help you @Stripps but I get banned for saying anything in this room, so I can't be bothered to help anyone anymore. I'll just sit her saying Lick to Frey
Nah @ShotgunNinja what annoys me is that I sit here all day helping anyone I can. I say one thing to a person who finds it offensive, when I was joking and I get banned. I got banned for saying "Marry Me" - That is how pathetic this place is
@Stripps in the code you provided you have not shown anywhere where you are including the Category. If you do not include a field in a html field of "For" it will come back in the HttpPost as null
@JamieTownsend The categorys are presented on the create page, but when I choose a category, the item gets created with anme, price and so, but the category field is null
Well, with bad bucket distributions, you get up to O(log n).
Right?
In an optimal hashtable, each bucket ends up with exactly 1 element, and it becomes O(1) to hash and select the appropriate bucket, then O(1) to get the only element.
A typical Dictionary will have things more or less spread out, reducing the load to n = A (buckets) * B (elements per bucket). Since the A can be reduced out by the O(1) hash lookup, you end up with B, which is approximately log n.
well, I've got a circular reference somewhere. (getting Maximum call stack size exceeded when attempting to json-ify my data). See if you can spot it? pastebin.com/4n5g4Vyp
For SortedList.Add(): "This method is an O(n) operation for unsorted data, where n is Count. It is an O(log n) operation if the new element is added at the end of the list. If insertion causes a resize, the operation is O(n)."