christophwaibel / EnergyHubs

Energy Hub scripts for various projects
MIT License
2 stars 2 forks source link

change tuple to (double name1, int [] name2, etc...) #3

Open christophwaibel opened 4 years ago

christophwaibel commented 4 years ago

using C# 7 tuples

private static (int a_plus_b, int a_mult_b) Add_Multiply(int a, int b)
{
    return(a + b, a * b);
}

currently, with the tuples, it is not very nice as API, because it is not clear, what these items1, 2, 3 are

christophwaibel commented 4 years ago

I didn't do it, because enabling c#7 tuples in the shared project EhubMisc would install tons of packages...

That's because one of the projects is a .NET Core project (Adam's thesis). Change it to .Net Framework?

Put Clustering to my BBO library first, then change the tuples.

christophwaibel commented 4 years ago

just use void (out int a, out int b)... better than tuples, because at least you can write into the xml what these variables stand for