Click here to Skip to main content
15,921,542 members
Home / Discussions / C#
   

C#

 
Questionjava.security.PrivateKey Pin
bindupv29-Dec-14 23:18
bindupv29-Dec-14 23:18 
AnswerRe: java.security.PrivateKey Pin
Richard MacCutchan30-Dec-14 0:54
mveRichard MacCutchan30-Dec-14 0:54 
QuestionI can not apply Drag Drop in this case Pin
VisualLive29-Dec-14 23:14
VisualLive29-Dec-14 23:14 
AnswerRe: I can not apply Drag Drop in this case Pin
Richard MacCutchan30-Dec-14 0:53
mveRichard MacCutchan30-Dec-14 0:53 
GeneralRe: I can not apply Drag Drop in this case Pin
VisualLive30-Dec-14 14:59
VisualLive30-Dec-14 14:59 
QuestionHow to organize this data Pin
turbosupramk329-Dec-14 8:14
turbosupramk329-Dec-14 8:14 
AnswerRe: How to organize this data Pin
Pete O'Hanlon29-Dec-14 8:53
mvePete O'Hanlon29-Dec-14 8:53 
GeneralRe: How to organize this data Pin
PIEBALDconsult29-Dec-14 9:07
mvePIEBALDconsult29-Dec-14 9:07 
Why sort it at all? You can plot unsorted values. :shrug:

On the other hand, part of what I was playing with over the last few days involved X,Y,value objects and I keep them in a Dictionary<int,object> (like a sparse* matrix, and the int Key is essentially a hash of the X and Y -- (X<<16)|Y). In my case, I then use nested for loops to access the content of the Dictionary in the order I want them.

C#
for ( y = miny ; y <= maxy ; y++ )
  for ( x = minx ; x <= maxx ; x++ )
    if ( data.ContainsKey ( hash ( x , y ) ) ...


This requires that I update the min and max x and y as I add items to the dictionary, but that's no big deal.

* There may be only 10% or fewer active items over the two-dimensional address space.

modified 29-Dec-14 17:03pm.

AnswerRe: How to organize this data Pin
BillWoodruff29-Dec-14 9:20
professionalBillWoodruff29-Dec-14 9:20 
GeneralRe: How to organize this data Pin
PIEBALDconsult29-Dec-14 10:04
mvePIEBALDconsult29-Dec-14 10:04 
GeneralRe: How to organize this data Pin
BillWoodruff29-Dec-14 12:12
professionalBillWoodruff29-Dec-14 12:12 
GeneralRe: How to organize this data Pin
SledgeHammer0129-Dec-14 10:50
SledgeHammer0129-Dec-14 10:50 
GeneralRe: How to organize this data Pin
BillWoodruff29-Dec-14 12:11
professionalBillWoodruff29-Dec-14 12:11 
GeneralRe: How to organize this data Pin
SledgeHammer0129-Dec-14 12:28
SledgeHammer0129-Dec-14 12:28 
GeneralRe: How to organize this data Pin
BillWoodruff29-Dec-14 14:18
professionalBillWoodruff29-Dec-14 14:18 
GeneralRe: How to organize this data Pin
SledgeHammer0129-Dec-14 14:58
SledgeHammer0129-Dec-14 14:58 
GeneralRe: How to organize this data Pin
BillWoodruff29-Dec-14 23:44
professionalBillWoodruff29-Dec-14 23:44 
GeneralRe: How to organize this data Pin
SledgeHammer0130-Dec-14 4:13
SledgeHammer0130-Dec-14 4:13 
GeneralRe: How to organize this data Pin
PIEBALDconsult29-Dec-14 13:07
mvePIEBALDconsult29-Dec-14 13:07 
GeneralRe: How to organize this data Pin
BillWoodruff29-Dec-14 23:15
professionalBillWoodruff29-Dec-14 23:15 
GeneralRe: How to organize this data Pin
SledgeHammer0130-Dec-14 4:17
SledgeHammer0130-Dec-14 4:17 
GeneralRe: How to organize this data Pin
BillWoodruff30-Dec-14 23:42
professionalBillWoodruff30-Dec-14 23:42 
GeneralRe: How to organize this data Pin
PIEBALDconsult30-Dec-14 15:29
mvePIEBALDconsult30-Dec-14 15:29 
GeneralRe: How to organize this data Pin
BillWoodruff30-Dec-14 23:53
professionalBillWoodruff30-Dec-14 23:53 
GeneralMessage Closed Pin
29-Dec-14 2:32
Marvic Grima29-Dec-14 2:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.