Skip to content

Settings and activity

1 result found

  1. 59 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Yoshifumi Kawai commented  · 

    I want it.
    csx is some different with LINQPad's C# Expression and C# Statement.

    I'm trying latest roslyn scripting package "Microsoft.CodeAnalysis.CSharp.Scripting" (Nov, 14th)
    It can define a class in the script file, returns last value, using in the script, #r, #load, etc...

    ```
    var aaa = 10;

    // define class in script
    public class Foo
    {
    public int Bar {get; set;}
    }

    // return
    new Foo() { Bar = aaa }
    ```

    I think need to add new language mode(C# Scripting).

    Yoshifumi Kawai supported this idea  ·