Struct - Offset
//using System.Collections.Generic;
/*
• A offset in a data collection is a integeer indicating the distence (displacement) from the beginning of the object up until a certain element or point.
• E.g., A in a array of abcdef -- the fourth element 'd' has an offset of 3 from the start of A.
*/
class Program {
static void Main()
{
var dictionary = new Dictionary<string, FileData>();
FileData f;
f.Start = 1000;
f.Length = 200;
dictionary.Add("key", f);
}
struct FileData
{
public int Start;
public int Length;
}
}
// Define other methods and classes here