C# Uri GetType
Description
Uri GetType
gets the Type of the current instance.
Syntax
Uri.GetType
has the following syntax.
public Type GetType()
Returns
Uri.GetType
method returns The exact runtime type of the current instance.
Example
using System;/*from w w w.j av a2s .c o m*/
public class MainClass{
public static void Main(String[] argv){
// Create Uri
Uri uriAddress = new Uri("http://www.java2s.com/index.htm#search");
Console.WriteLine(uriAddress.GetType());
}
}
The code above generates the following result.