It looks like you want to access the x / y position at a given time. You can consider a combination of other answers along with a dictionary.
Define a simple structure that contains the x and y positions. It is important that this object is immutable.
public struct Position { public int X { get; } public int Y { get; } public Position(int x, int y) { this.X = x; this.Y = y; } }
Now you can save them in a dictionary with (possibly) DateTime as a key.
Dictionary<DateTime, Position> positions = new Dictionary<DateTime, Position>(); positions.Add(new DateTime(2017,3,29,10,0,0), new Position(10,10));
And you can read your position, for example
var pos = positions[new DateTime(2017,3,29,10,0,0)]; Console.WriteLine("{0}:{1}",pos.X,pos.Y);
A nice addition to this is that if, for example, you get a list of these objects that you want to find by time, you can easily turn them into a dictionary. Say you got a list of them (from another answer):
public class PositionEntity { public DateTime Time {get;set;} public int X {get;set;} public int Y {get;set;} }
As an entities list, you can do this:
IEnumerable<PositionEntity> entities = .... loaded from somewhere var dict = entities.ToDictionary(k => k.Time, v => new Position(vX,vY));