![]() |
VOOZH | about |
public Type GetType ();Return Value: This method return the exact runtime type of the current instance. Below given are some examples to understand the implementation in a better way: Example 1: Output:
Type of str1: System.String Type of str2: System.StringExample 2:
Str 1 is : C# Str 2 is : DSA Str 3 is : 43 Is Str 1 and Str 2 of same type? : True Is Str 2 and Str 3 of same type? : False Is Str 3 and Str 2 of same type? : FalseReference: