Click here to Skip to main content
15,887,214 members
Home / Discussions / Algorithms
   

Algorithms

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder28-Jul-09 2:32
cofounderChris Maunder28-Jul-09 2:32 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Mar-09 10:13
cofounderChris Maunder16-Mar-09 10:13 
Questionbfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 7:18
TalespinTales1-Jan-24 7:18 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 9:26
mveDave Kreskowiak1-Jan-24 9:26 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 9:31
TalespinTales1-Jan-24 9:31 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 10:46
mveDave Kreskowiak1-Jan-24 10:46 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 10:54
TalespinTales1-Jan-24 10:54 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 12:36
mveDave Kreskowiak1-Jan-24 12:36 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Gerry Schmitz1-Jan-24 11:04
mveGerry Schmitz1-Jan-24 11:04 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
jschell2-Jan-24 6:32
jschell2-Jan-24 6:32 
Question[SOLVED] Representing Metadata Pin
Richard Andrew x6429-Dec-23 13:52
professionalRichard Andrew x6429-Dec-23 13:52 
I'd like to have non C# metadata about some of my classes stored with those classes.

I tried creating static virtual methods that would return the metadata, but alas, C# doesn't support static virtual methods.

So it got me thinking...What's the best way to store metadata about classes inside those classes so that you can retrieve it from an instance or from a static method?

Or is there another better way to store metadata about the classes?

SOLUTION: I'll just create virtual instance methods. But I'd still like to hear your thoughts on the matter.

SECOND SOLUTION: Due to Gerry's suggestion, I am now using Attributes for this purpose. It's working out better than instance methods would have.
The difficult we do right away...
...the impossible takes slightly longer.


modified 31-Dec-23 11:24am.

AnswerRe: [SOLVED] Representing Metadata Pin
Gerry Schmitz30-Dec-23 6:50
mveGerry Schmitz30-Dec-23 6:50 
GeneralRe: [SOLVED] Representing Metadata Pin
Richard Andrew x6430-Dec-23 12:52
professionalRichard Andrew x6430-Dec-23 12:52 
QuestionLocking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6426-Dec-23 8:02
professionalRichard Andrew x6426-Dec-23 8:02 
AnswerRe: Locking pattern to protect a critical List<> with many worker threads Pin
Mircea Neacsu26-Dec-23 8:17
Mircea Neacsu26-Dec-23 8:17 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6426-Dec-23 8:39
professionalRichard Andrew x6426-Dec-23 8:39 
AnswerRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell27-Dec-23 5:27
jschell27-Dec-23 5:27 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6427-Dec-23 5:32
professionalRichard Andrew x6427-Dec-23 5:32 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot27-Dec-23 8:01
harold aptroot27-Dec-23 8:01 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6427-Dec-23 8:32
professionalRichard Andrew x6427-Dec-23 8:32 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads [edited] Pin
harold aptroot27-Dec-23 9:23
harold aptroot27-Dec-23 9:23 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell28-Dec-23 5:55
jschell28-Dec-23 5:55 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot28-Dec-23 6:19
harold aptroot28-Dec-23 6:19 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell29-Dec-23 4:46
jschell29-Dec-23 4:46 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot29-Dec-23 5:19
harold aptroot29-Dec-23 5:19 

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.