Forum C# "varible of the non-allowed type: System.Tuple"

"varible of the non-allowed type: System.Tuple"

Postby wgfunstormcontest » January 10th, 2013, 3:03 am

Why not allowed?
wgfunstormcontest
 
Posts: 55
Joined: September 25th, 2012, 8:26 pm

Re: "varible of the non-allowed type: System.Tuple"

Postby AndyKerrison » January 11th, 2013, 6:00 pm

Beats me.

But you can just create your own container object for the two types which is effectively a tuple. May be more of a pain to populate it though.
AndyKerrison
 
Posts: 14
Joined: November 29th, 2012, 9:24 am

Re: "varible of the non-allowed type: System.Tuple"

Postby Benjaminsen » January 11th, 2013, 6:18 pm

Rather than trying to guess all the abusive classes in a blacklist we maintain a whitelist of allowed classes. I will have our guys review System.Tuple.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: "varible of the non-allowed type: System.Tuple"

Postby wgfunstormcontest » January 12th, 2013, 6:29 am

Cool, thanks.
wgfunstormcontest
 
Posts: 55
Joined: September 25th, 2012, 8:26 pm


Return to C#



cron