• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 15-Day Money-Back Guarantee

C# Equivalent to Java Constructors & Finalizers

Java C#
class Foo
{
    public Foo()
    {
        this(0); //call to other constructor
    }

    public Foo(int i)
    {
    }

    protected void finalize() throws Throwable
    {
    }
}
class Foo
{
    public Foo() : this(0) //call to other constructor
    {
    }

    public Foo(int i)
    {
    }

    ~Foo()
    {
    }
}


Use Java to C# Converter to convert from Java to C#.     

Additional resource: Java and C# Equivalents


Copyright © 2004 – 2019 Tangible Software Solutions, Inc.