C# Uri Finalize

In this chapter you will learn:

  1. Get to know Uri.Finalize
  2. Syntax for Uri.Finalize
  3. Returns for Uri.Finalize
  4. Example - Uri.Finalize

Description

Uri Finalize allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

Syntax

Uri.Finalize has the following syntax.


protected virtual void Finalize()

Returns

Uri.Finalize method returns

Example


/*from w ww .  j av a2s  .c  o  m*/
using System;
public class MainClass{
  public static void Main(String[] argv){  
    Uri u = new Uri("http://java2s.com");
    u.Finalize();
  }
}

Next chapter...

What you will learn in the next chapter:

  1. Get to know Uri.FromHex
  2. Syntax for Uri.FromHex
  3. Parameter for Uri.FromHex
  4. Returns for Uri.FromHex
  5. Example - Uri.FromHex