Settings and activity

  1. 51 votes
    Sign in
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  LINQPad Feature Suggestions  ·  Flag idea as inappropriate…  ·  Admin →
    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  ·