Equivalent of Super Keyword in C#

The Solution to Equivalent of Super Keyword in C# is

C# equivalent of your code is

  class Imagedata : PDFStreamEngine
     // C# uses "base" keyword whenever Java uses "super" 
     // so instead of super(...) in Java we should call its C# equivalent (base):
     public Imagedata()
       : base(ResourceLoader.loadProperties("org/apache/pdfbox/resources/PDFTextStripper.properties", true)) 
     { }

     // Java methods are virtual by default, when C# methods aren't.
     // So we should be sure that processOperator method in base class 
     // (that is PDFStreamEngine)
     // declared as "virtual"
     protected override void processOperator(PDFOperator operations, List arguments)
        base.processOperator(operations, arguments);

~ Answered on 2013-07-05 10:54:03

Most Viewed Questions: