Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fuzzy Icons Pin
Peter_in_27809-Sep-20 20:46
professionalPeter_in_27809-Sep-20 20:46 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x649-Sep-20 21:02
professionalRichard Andrew x649-Sep-20 21:02 
AnswerRe: Fuzzy Icons Pin
Richard MacCutchan9-Sep-20 21:46
mveRichard MacCutchan9-Sep-20 21:46 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x649-Sep-20 21:52
professionalRichard Andrew x649-Sep-20 21:52 
GeneralRe: Fuzzy Icons Pin
Richard MacCutchan9-Sep-20 22:23
mveRichard MacCutchan9-Sep-20 22:23 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x649-Sep-20 22:25
professionalRichard Andrew x649-Sep-20 22:25 
AnswerRe: Fuzzy Icons Pin
Gerry Schmitz10-Sep-20 8:22
mveGerry Schmitz10-Sep-20 8:22 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x6410-Sep-20 8:50
professionalRichard Andrew x6410-Sep-20 8:50 
GeneralRe: Fuzzy Icons Pin
Gerry Schmitz10-Sep-20 9:24
mveGerry Schmitz10-Sep-20 9:24 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x6410-Sep-20 10:48
professionalRichard Andrew x6410-Sep-20 10:48 
AnswerRe: Fuzzy Icons Pin
mo149212-Sep-20 12:49
mo149212-Sep-20 12:49 
GeneralRe: Fuzzy Icons Pin
Richard Andrew x6412-Sep-20 13:28
professionalRichard Andrew x6412-Sep-20 13:28 
QuestionHow to dynamically load assembly and dependencies from file path. Pin
koirat8-Sep-20 5:26
koirat8-Sep-20 5:26 
AnswerRe: How to dynamically load assembly and dependencies from file path. Pin
Richard Andrew x648-Sep-20 5:37
professionalRichard Andrew x648-Sep-20 5:37 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
koirat8-Sep-20 6:36
koirat8-Sep-20 6:36 
AnswerRe: How to dynamically load assembly and dependencies from file path. Pin
Gerry Schmitz8-Sep-20 7:12
mveGerry Schmitz8-Sep-20 7:12 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
koirat8-Sep-20 8:57
koirat8-Sep-20 8:57 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
Gerry Schmitz8-Sep-20 10:34
mveGerry Schmitz8-Sep-20 10:34 
AnswerRe: How to dynamically load assembly and dependencies from file path. Pin
Eddy Vluggen8-Sep-20 7:41
professionalEddy Vluggen8-Sep-20 7:41 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
koirat8-Sep-20 9:59
koirat8-Sep-20 9:59 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
Eddy Vluggen8-Sep-20 10:04
professionalEddy Vluggen8-Sep-20 10:04 
GeneralRe: How to dynamically load assembly and dependencies from file path. Pin
koirat8-Sep-20 12:25
koirat8-Sep-20 12:25 
QuestionCreate a Multi-Layer Data Model from a MySQL Query Pin
mjeeves7-Sep-20 8:25
mjeeves7-Sep-20 8:25 
AnswerRe: Create a Multi-Layer Data Model from a MySQL Query Pin
mjeeves7-Sep-20 8:43
mjeeves7-Sep-20 8:43 
I found this one example is this the best method / approach?

C#
<pre>namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Customer> CustomerList = new List<Customer>();
            CustomerList.Add(new Customer { ID = 1, Name = "One", GroupID = 1 });
            CustomerList.Add(new Customer { ID = 2, Name = "Two", GroupID = 1 });
            CustomerList.Add(new Customer { ID = 3, Name = "Three", GroupID = 2 });
            CustomerList.Add(new Customer { ID = 4, Name = "Four", GroupID = 1 });
            CustomerList.Add(new Customer { ID = 5, Name = "Five", GroupID = 3 });
            CustomerList.Add(new Customer { ID = 6, Name = "Six", GroupID = 3 });

            IEnumerable<CustomerGrouping> CustomerGroupings = CustomerList.GroupBy(u => u.GroupID)
                                                  .Select(group => new CustomerGrouping { GroupID = group.Key, Customers = group.ToList() })
                                                  .ToList();
        }
    }

    public class Customer
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public int GroupID { get; set; }
    }

    public class CustomerGrouping
    {
        public int GroupID { get; set; }
        public IEnumerable<Customer> Customers { get; set; }
    }

GeneralRe: Create a Multi-Layer Data Model from a MySQL Query Pin
Richard MacCutchan7-Sep-20 9:27
mveRichard MacCutchan7-Sep-20 9:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.