Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see what class was passed into template in Rider as an argument?

I am debugging C# templates in Rider a lot and would like to know whether or not it is possible and if yes, then how to see what class is coming into template in Rider?

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Rextester
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //Your code goes here
            Console.WriteLine("Hello, world!");
        }

        public void DoSomething<T>() {
            //What is a type of T?
        }
    }
}
like image 401
trafalgarLaww Avatar asked Jan 23 '26 00:01

trafalgarLaww


1 Answers

With a fresh install and the default settings, you can see the variable type in the "Variables" window that you can see when you debug:

enter image description here

like image 66
nvoigt Avatar answered Jan 24 '26 14:01

nvoigt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!