-
Notifications
You must be signed in to change notification settings - Fork 89
typeof operator
CodingUnit edited this page Nov 30, 2011
·
4 revisions
-
Category: Data Types
-
Description: Demostrate how to use typeof operator.
-
Code:
using System;
using System.Console;
def SampleTypeOf()
{
def intType = typeof(int);
WriteLine($"$(intType.Name) can be retrieved by using typeof")
}
SampleTypeOf()
- Execution Result:
Int32 can be retrieved by using typeof
[Copyright ©](Terms of use, legal notice)