I have a class as shown below:
public class Par
{
public string id { get { return id; } set { id = value; } }
public Int32 num { get { return num; } set { num = value; } }
}
Now I also created a class named "Msg" which has a nested list of Par objects
public class Msg
{
private...
I've created a list of instances of an object, to give sample data. I've then created a list of IGrouping, containing the objects. Within the foreach, I'm then trying to give an ordering number for the objects within their respective groups (this for each only assigns a value where the value...
im a beginner to c#. can any one help how this loop is working.
please and thankyou.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication9
{
class Program
{
static void Main(string[] args)
{...
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.