Yes it is. Your example uses var, which has a very different meaning in C # than it said in JavaScript. In C #, it is more like syntactic sugar. The code you wrote is equivalent to the following -
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
int intNum = 5;
string strNum = "5";
string result = String.Concat(intNum, strNum);
Console.WriteLine(result);
}
}
}
, , var, . , ( ), , .
, .
, , var , ...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
var intNum = 5;
var strNum = "5";
var result = intNum + strNum;
result = 6;
result = intNum;
Console.WriteLine(result);
}
}
}
(, JavaScript).