converted All the Structures to C#!