Print your program C #

Source: Internet
Author: User
1 Class C
2 {
3 Static   Void Main ()
4 {
5System. Console. writeline (S, S,'\ U0022');
6}
7 Const   String S =   @" Class C
8 {{
9 Static void main ()
10 {{
11 System. Console. writeline (S, S, '\ u0022 ');
12 }}
13 Const string s =@{ 1} {0} {1 };
14 }} " ;
15 }

From: ADI oltean's weblog, 2004-07-07

1 Using System;
2 Public   Class Class1
3 {
4 Static   Void Main ( String [] ARGs)
5 {
6 Console. Write (Code +   ' \ U0022 '   + Code +   ' \ U0022 '   +   ' ; '   +   ' \ N '   +   ' } ' );
7 }
8 Public   Static   String Code =
9 @" Using system;
10 Public class class1
11 {
12 Static void main (string [] ARGs)
13 {
14 Console. Write (code + '\ u0022' + code + '\ u0022' + ';' + '\ n' + '}');
15 }
16 Public static string code =
17 @ " ;
18 }

From: Wes 'puzzling blog

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.