C#C
C#3y ago
JJ

❔ how to use List that have struct type ( WPF)

public struct Linq
{
public Window win;
public TextBox textBox;
}


private void newWindow()
{
Window win = new Window();
TextBlock t = new TextBlock()
List<Linq> a = new List<Linq>();
a.Add(win, t);
}

I wanna input struct Linq (TextBlock and Window class object) to List
Was this page helpful?