I have a template in C++ that looks like this:
template<typename T>
static void initStruct(T* t)
{
memset(t, 0, sizeof(T));
t->member1 = [something];
}
Note that T can be different kind of structs and each one has "member1" but the size for each struct can be different.
I am new to c# and I need to store many custom values maybe as an object? I am used to JavaScript, the following code does that what I want in JS, but I dont know how to do the same in c#:
var exampleObject = {
"playerScored":true,
"goalCount": 5,
"playerInfo": {
"name": "Manuel...
Hello,
I'm working on fixture project and trying to assign teams with each other.I have 18 teams and half of this is playing at home and the other half is playing at away.I created 2 structs.First struct is named "Teams" and holds the infos about each team(it's code is at below)
public struct...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.