Fantasies About the anonymous type

Source: Internet
Author: User
After five minutes of excitement ~
The anonymous type has been known for a long time. It is only found today that it is useful.
First, its scope is only within the method, and it can only be converted to an object outside the method. At this time, it is truly anonymous.
Msdn says:

Anonymous typeHas a method range. To passAnonymous typeOr an includeAnonymous typeMust firstAnonymous typeForced conversion . However, this will makeAnonymous typeIs invalid. If you must store the query results or pass the query results outside the method boundary, consider using a common naming structure or class insteadAnonymous type.

Ah, it's really uncomfortable. Next, I want to have a compromise. Which of the following anonymous experts will teach me ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.