c# typeof
// C# program to illustrate the
// concept of typeof operator
using System;
class GFG {
// Here store Type as a field
static Type a = typeof(double);
// Main method
static void Main()
{
// Display the type of a
Console.WriteLine(a);
// Display the value type
Console.WriteLine(typeof(int));
// Display the class type
Console.WriteLine(typeof(Array));
// Display the value type
Console.WriteLine(typeof(char));
// Display the array reference type
Console.WriteLine(typeof(int[]));
}
}
Also in C#:
- c# checksum
- how to make a pause feautre in unity
- unity change tag in script
- unity move character
- c# pass mouse events to parent
- unity calculate path
- Read csv file into wpf C#
- if else statement
- insert variables into string c#
- see if two string arrays are equal c#
- c# enum variable set to nonthing
- c# type of generic is string
- go to next itiration in foreach C#
- c# how to use inovke
- dynamic group by expression C#
- c# select first value from list
- c# print expression tree
- iterate through xpdictionary devexpress
- c# arraylist to listview
- c# length of array
- c# print to console
- unity c# public all codes
- c# null conditional operator if statement
- c# edit element in list