.NET Fiddle

CSharp · Console

/Program.cs

using System;

namespace System
{
	public class String { } 
}

namespace Example
{
	public class Program
	{
		public static void Main()
		{
			String str1 = null;
			string str2 = null;
			PrintType(str1);
			PrintType(str2);
		}
		
		static void PrintType<T>(T p)
		{
			Console.WriteLine(typeof(T).AssemblyQualifiedName);
		}
	}
}
;