made C# use structs