Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 13 characters in body
Source Link
Rob
  • 27.5k
  • 16
  • 89
  • 103

I Have a simple way to do a list and show properties of it.

List razones = new List();

foreach (var item in _context.Reason)

{

razones.Add (item.Description);

}

System.Diagnostics.Debug.WriteLine(razones.Count);

List<string> razones = new List<string>();
foreach (var item in _context.Reason)
{
    razones.Add (item.Description);
}
System.Diagnostics.Debug.WriteLine(razones.Count);

I Have a simple way to do a list and show properties of it.

List razones = new List();

foreach (var item in _context.Reason)

{

razones.Add (item.Description);

}

System.Diagnostics.Debug.WriteLine(razones.Count);

I Have a simple way to do a list and show properties of it.

List<string> razones = new List<string>();
foreach (var item in _context.Reason)
{
    razones.Add (item.Description);
}
System.Diagnostics.Debug.WriteLine(razones.Count);
Source Link

I Have a simple way to do a list and show properties of it.

List razones = new List();

foreach (var item in _context.Reason)

{

razones.Add (item.Description);

}

System.Diagnostics.Debug.WriteLine(razones.Count);