Can array index be floating in C#.net? -



Can array index be floating in C#.net? -

i have array in c#, , logic stuck , can work if can have floating indexes.

can day 0.5 or 2.5 that

days[day, col]=1;

please allow me know solution

you can write indexers using type like, e.g.

public double this[double x, int y] { { ... } set { ... } }

you can't index array non-integer though.

c# .net asp.net

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -