Is there a way to use the C# interactive shell window (from the Roslyn CTP) outside of VS? Or is there something similar to it that is available?
What is the use of default keyword in C#? Is it introduced in C# 3.0 ?
Is there a way to use the C# interactive shell window (from the Roslyn CTP) outside of VS? Or is there something similar to it that is available?
After several years (ugh!) there is finally something in this space! CShell. From the site:
CShell is an interactive C# scripting environment. It allows you to use C# without any fluff right in a console like environment caled a read-eval-print-loop (REPL). Your code is directly evaluated and executed in a shell window, no separate executable has to be compiled and then run in a different process. More elaborate code can be written in a C# script and then evaluated as one file, only one line, or a selection. Then, your results can be easily dumped to HTML (like LINQPad) or viewed as a data grid or plotted to a chart.
Right now, the interactive window only works inside Visual Studio. Roslyn exposes a scripting API which the interactive window uses, so you really want an interactive window running somewhere else, feel free to write it!
To be clear, the C# Interactive window uses several Visual Studio components (such as the VS Editor), so it cannot be hosted outside of VS. As Jason Malinowski said, you can create a quick-and-dirty Interactive window outside of VS pretty easily using the Roslyn Scripting APIs. Also, if you re looking to evaluate code outside of VS, you can create a C# Script file (.csx), add top-level code just as you can in the Interactive window, and run it with the rcsi.exe binary that ships with the Roslyn CTP.
Here is a quick Example, pretty minimal though. Don t support blocks {}
http://www.amazedsaint.com/2011/10/c-vnext-roslynan-introduction-and-quick.html
csi.exe is the command-line version of C# interactive. It s shipped in the box with Visual Studio. Type csi from a Developer Command prompt.
What is the use of default keyword in C#? Is it introduced in C# 3.0 ?
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...
I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...
I have two EF entities. One has a property called HouseNumber. The other has two properties, one called StartHouseNumber and one called EndHouseNumber. I want to create a many to many association ...
How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...
Since I cannot order my dictionary, what is the best way of going about taking key value pairs and also maintaing an index?
Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...