How can I find out what data type some variable is holding? (e.g. int, string, char, etc.)
I have something like this now:
using System; using System
One option would be to use a helper extension method like follows:
public static class MyExtensions { public static System.Type Type(this T v)=>typeof(T); } var i=0; console.WriteLine(i.Type().FullName);