.net - What type should i use for "database-like" behaviour in C#? -
i'm working on experimental setup, used write complex microstructures glass femtosecond laser.
the output power of laser regulated filterwheel control (c# console)application. not know position of wheel, need initalize on startup, measuring power predefined number of points on wheel.
this information (power values , corresponding position on wheel) should stored during runtime. if output power requested, controller 2 points in between desired value can found , increments position until reached.
this achieve using database. initialization takes place on every startup , not need persisted, prefer keep in-memory list.
so question is:
is possible somehow "index" power values retrieve them quickly?
you may @ using sorteddictionary<int, int>
if you're going have calculate "in-between" values keys.
look @ similar question here example on finding points between 2 keys using sorteddictionary
Comments
Post a Comment