Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

.NET and c# interview questions :- Why anonymous types are better than tuples ?

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,524
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 15, 2011

In this video we will try to understand what are tuples , what are anonymous types in .NET 4.0 and we will also discuss why anonymous types are better than tuples.
For more such videos visit http://www.questpond.com

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (dnfvideo)

  • I didn't know you could use aq 2nd 'copy' of an anonymous type like you did in the Cast method. Every day's a school day!

  • @StuartHemming I agree...there is always room for improvment

  • Anonymous types are definitely preferable to tuples in C# since the language does not have good tuple support.

    I think it would be better to use continuation-passing style. The example was almost there. Instead of using the Cast method, just make the ParseData method return T, then use a selector Func as the final parameter.

    Thanks for the video, keep the coming!

  • @kodefuguru Thanks i agree that would me much easier.

see all

All Comments (14)

Sign In or Sign Up now to post a comment!
  • @4:03, you do not need to allocate any memory....because it will be allocated by the Split function...You are anyway allocating wrong memory( 3 count vs 4) which don't need anyway

  • many thanks - great video

  • excellent video......

    I didnt know how to use tuples but now i know.........

  • Thank you very much Sir, I didn't know about anonymous types and tuples. I knew only about out variables

  • @dnfvideo Cool and keep up the good work uploading great vids

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more