No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
I've been coding an applet using Java 1.4 under the (possibly/probably misguided) assumption that newer JRE's are backwards compatible, so my applet could run on a wider array of target systems without requiring users to update their JRE. Is this a valid assumption? I'd like to use the new language … | |
Re: You could do it without the dictionary by sorting the array then finding the longest sequence. Of course, this requires altering the element order and is less generic (can't sort IEnumerable). Here's apegram's code modified to do that: [CODE=C#] T GetMostFrequent<T>(T[] list) where T : class { Array.Sort(list); int currentCount … | |
Is is possible to define a method which returns a delegate, without first creating a delegate type? For instance, in C or C++ I can define a function pointer type, then define a function which returns a function pointer of that type: [code=c]typedef int (*IntVoid)(); // function pointer type IntVoid … |
The End.