Tag Archives: C#

Back to Basics – What is the difference between const and readonly in C#?

By | November 6, 2017

Continuing with the Back to Basics series, here is another common and quite confusing question. What is read-only and constant variable? How do they differ? When should we use constant over Read-only? const and readonly, are very common keywords and are quite confusing when you placed them with each other. Let’s try to get into it and understand… Read More »

Linking Team Services (VSTS) accounts with your Azure account for Continuous Integration

By | July 19, 2017

Before setting up the Continuous Integration, you have to make sure your Visual Studio Team Services (VSTS) account is linked with your Azure subscription. I came across this for one of my personal account while trying to setup the Continuous Integration for Azure Bot Service.  In the previous we discussed about Setting Up Continuous Integration for Azure Bot… Read More »

Back to Basics : Difference Between int.Parse() and int.TryParse()

By | January 16, 2016

What is the difference between int.Parse() and int.TryParse() ? Or how the int.parse() is differ from int.TryParse() ? – yet another frequently  asked question in interview for the beginners, and I have seen confusion while answering this.  Let’s try to understand using simple example. To answer this in a sort way, the int.Parse() and int.TryPrase() methods is used… Read More »

Executing C# Scripts from Command Line or C# Interactive Windows in Visual Studio

By | January 14, 2016

C# Script files is similar like other script files that contain a piece of C# code and can execute and returns the results.  As I said it is only piece of code – you really don’t have to have like a class  or method to get the result. The C# script file (CSX) file is  it’s own container… Read More »

Command Line C# Interactive Script Execution for Visual Studio

By | January 13, 2016

In the previous post we discussed about Use C# Interactive Window for your coding experiment in Visual Studio 2015 . What about using the similar coding experiment without opening Visual Studio ?  Well, If you don’t want to open Visual Studio and still want to play around with C# code, execute some test code,   or run a script… Read More »

Use C# Interactive Window for your coding experiment in Visual Studio 2015

By | January 12, 2016

The Interactive Window in Visual Studio is a great utility to play around the code, language features, API’s and other .NET framework features. It is a REPL  (Read–eval–print loop) that provides us an environment for live coding and evaluate expression or code snippet based on our inputs. The Interactive Window also support features like IntelliSense, syntax highlighting and… Read More »