c# nameof
Console.WriteLine(nameof(System.Collections.Generic)); // output: Generic
Console.WriteLine(nameof(List<int>)); // output: List
Console.WriteLine(nameof(List<int>.Count)); // output: Count
Console.WriteLine(nameof(List<int>.Add)); // output: Add
var numbers = new List<int> { 1, 2, 3 };
Console.WriteLine(nameof(numbers)); // output: numbers
Console.WriteLine(nameof(numbers.Count)); // output: Count
Console.WriteLine(nameof(numbers.Add)); // output: Add
Also in C#:
- print line in python
- c# datafield change cell background color
- Exception thrown: 'System.FormatException' in mscorlib.dll dates
- object escape player unity
- iphone
- c# string array to string
- C# get pc language
- how to delete from a list c#
- never lose focus textbox c#
- Movement 2d unity
- c# add object to array
- http post request login example asp.net c#
- c# console writeline color
- decimals not stored in azure tables
- c# get value of object in enum
- nunit return parameter
- visual studio C# hintergrund bild ändern
- unity connect to firebase
- how consider the first caracter in Split c#
- c# list string return concatenate
- if and c#
- c# reverse array
- c# get every point in a line in matrix
- mvc c# w3schools