Performs macro substitution in Csharp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • L.Peter

    Performs macro substitution in Csharp

    Dear Group,
    How can I do this?
    ****
    int i;
    string cmacro = "i =3";
    // How to tell c# to show 3
    MessageBox.Show (cmacro);
    ****
    how can I tell c# to treat my string as code?

    TIA

    L.peter


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004


  • Justin Rogers

    #2
    Re: Performs macro substitution in Csharp

    C# doesn't have an evaluation grammer of any sort. There are no macro
    replacements. In fact there are only a few interpreted C# libraries. That last
    item would be your best bet, since I'm sure at some point a company will
    release a decent one. In fact, I have a decent one that I was planning for
    January.

    In the short term, you can maybe check out Mono. I think it has a C#
    interpreter. Technically I'm not supposed to look at Mono, and I don't
    so I'm not sure how good it is.

    --
    Justin Rogers
    DigiTec Web Consultants, LLC.
    Blog: http://weblogs.asp.net/justin_rogers

    "L.Peter" <peter@nospam.l ocal> wrote in message
    news:ORaFhj7wEH A.3228@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Dear Group,
    > How can I do this?
    > ****
    > int i;
    > string cmacro = "i =3";
    > // How to tell c# to show 3
    > MessageBox.Show (cmacro);
    > ****
    > how can I tell c# to treat my string as code?
    >
    > TIA
    >
    > L.peter
    >
    >
    > ---
    > Outgoing mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
    >[/color]


    Comment

    • L.Peter

      #3
      Re: Performs macro substitution in Csharp

      Dear Justin,
      Thank you for your reply. What a pity. Hope Microsoft will do something to
      add more useful features to C#.

      Best Regards

      L.Peter

      "Justin Rogers" <Justin@games4d otnet.com> wrote in message
      news:Ofe7kk9wEH A.908@TK2MSFTNG P11.phx.gbl...[color=blue]
      > C# doesn't have an evaluation grammer of any sort. There are no macro
      > replacements. In fact there are only a few interpreted C# libraries. That
      > last
      > item would be your best bet, since I'm sure at some point a company will
      > release a decent one. In fact, I have a decent one that I was planning for
      > January.
      >
      > In the short term, you can maybe check out Mono. I think it has a C#
      > interpreter. Technically I'm not supposed to look at Mono, and I don't
      > so I'm not sure how good it is.
      >
      > --
      > Justin Rogers
      > DigiTec Web Consultants, LLC.
      > Blog: http://weblogs.asp.net/justin_rogers
      >
      > "L.Peter" <peter@nospam.l ocal> wrote in message
      > news:ORaFhj7wEH A.3228@TK2MSFTN GP10.phx.gbl...[color=green]
      >> Dear Group,
      >> How can I do this?
      >> ****
      >> int i;
      >> string cmacro = "i =3";
      >> // How to tell c# to show 3
      >> MessageBox.Show (cmacro);
      >> ****
      >> how can I tell c# to treat my string as code?
      >>
      >> TIA
      >>
      >> L.peter
      >>
      >>
      >> ---
      >> Outgoing mail is certified Virus Free.
      >> Checked by AVG anti-virus system (http://www.grisoft.com).
      >> Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
      >>[/color]
      >
      >[/color]


      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.789 / Virus Database: 534 - Release Date: 11/7/2004


      Comment

      Working...