C# TimeZone GetType
Description
TimeZone GetType
gets the Type of the current instance.
Syntax
TimeZone.GetType
has the following syntax.
public Type GetType()
Returns
TimeZone.GetType
method returns The exact runtime type of the current instance.
Example
The following code shows how to use TimeZone.GetType()
.
//from www .j av a 2s. c o m
using System;
using System.Globalization;
class TimeZoneDemo
{
static void Main( )
{
TimeZone localZone = TimeZone.CurrentTimeZone;
Console.WriteLine(localZone.GetType() );
}
}
The code above generates the following result.