Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c# x 2
java x 1

3 Posted Topics

Member Avatar for EricTetz

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 …

Member Avatar for jon.kiparsky
0
170
Member Avatar for niemo

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 …

Member Avatar for EricTetz
0
1K
Member Avatar for EricTetz

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 …

Member Avatar for EricTetz
0
359

The End.