To create that in C#, I would do the following:
C# Code:
public struct TypeGLCash
{
public string cshGLNo;
public string cshGLAmt;
public string cshTicket;
}
And then create a list in your code like
C# Code:
List<TypeGLCash> list = new List<TypeGLCash>();
You can then add an item to it as follows:
C# Code:
TypeGLCash newitem = new TypeGLCash();
newitem.cshGLAmt = "1";
newitem.cshGLNo = "2";
newitem.cshTicket = "3";
list.Add(newitem);
You can also create a constructor in the struct and add the item to the list in one line
C# Code:
public struct TypeGLCash
{
public string cshGLNo;
public string cshGLAmt;
public string cshTicket;
public TypeGLCash(string cshGLNo, string cshGLAmt, string cshTicket)
{
this.cshGLNo = cshGLNo;
this.cshGLAmt = cshGLAmt;
this.cshTicket = cshTicket;
} //end TypeGLCash
}
//and create the list/add an item
List<TypeGLCash> list = new List<TypeGLCash>();
list.Add(new TypeGLCash("1", "2", "3"));