I am trying to use a dll where the following structure exists:
public struct MyStruct
{
public int Day;
public int Hour;
public int Month;
public int MonthVal;
}
In my code I am trying to assign values to these variables:
MyStruct MS; OR MyStruct MS = new MyStruct(); and then do
MS.Day = 1;
MS.Hour = 12;
MS.Month = 2;
MS.MonthVal = 22;
Problem is, MS cannot be assigned values, and because the struct has no constructor, I cannot do
MyStruct ms = new MyStruct(1, 12, 2, 22);
So, how do I get values into the structure?