returning multiple values from c# function

Questions about MultiCharts .NET and user contributed studies.
johnromeronc
Posts: 53
Joined: 18 Feb 2011
Has thanked: 11 times
Been thanked: 13 times

returning multiple values from c# function

Postby johnromeronc » 23 Jun 2018

In latest C# 7 (2017) there is the ability to return multiple values. Is this supported in Ver 12 ? I have not tried yet.

https://weblogs.asp.net/sreejukg/c-7-re ... om-methods

John

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: returning multiple values from c# function

Postby Henry MultiСharts » 26 Jun 2018

Hello John,

Unfortunately this feature is not supported as MultiCharts .Net uses .Net Framework 4.0.

Chartsurfer
Posts: 22
Joined: 13 Feb 2017
Has thanked: 27 times
Been thanked: 5 times

Re: returning multiple values from c# function

Postby Chartsurfer » 03 Sep 2018

Hi Henry,

are there any plans to upgrade MC.NET to a later version of .NET framework?

Best

Peter

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: returning multiple values from c# function

Postby Henry MultiСharts » 06 Sep 2018

are there any plans to upgrade MC.NET to a later version of .NET framework?
Peter, this is not something that we have in our to-do list at the moment. You can return multiple values from c# function by reference.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: returning multiple values from c# function

Postby Emmanuel » 08 Sep 2018

Hi

1/ It is possible to get multiple answer is you send in a function an array by ref . (or an object by ref) The function just fill the array.

2/ It is possible to work with Framework 4.6 with MC

you just have to select the Framework in VS after opening the project then you can compile in Framework 4.6

it works fine. I do it all the time as I have to work with DLL working with Framework 4.6

I hope this help


Return to “MultiCharts .NET”