Casting a byte array to a managed structure

//I have found this at: http://code.cheesydesign.com/?p=572 (I have not tested yet, but // at first sight it will work well.) /// <summary> /// Reads in a block from a file and converts it to the struct /// type specified by the template parameter /// </summary> /// <typeparam name=”T”></typeparam> /// <param name=”reader”></param> /// <returns></returns> private static … Read more