Answers for "What keyword saves a reference variable to a method in C#"

C#
1

send type as argument c#

object GetColumnValue(string columnName, Type type)
{
    // Here, you can check specific types, as needed:

    if (type == typeof(int)) { // ...
Posted by: Guest on June-24-2020
0

send type as argument c#

T GetColumnValue<T>(string columnName)
{
    // If you need the type, you can use typeof(T)...
Posted by: Guest on June-24-2020

Code answers related to "What keyword saves a reference variable to a method in C#"

C# Answers by Framework

Browse Popular Code Answers by Language