Answers for "Calling the base constructor in C#"

C#
2

Calling the base constructor in C#

public class MyBaseClass {
	MyBaseClass(T input) {
  		input.doSomething();
    }
}

public class MyClass : MyBaseClass {
    public MyClass() : base(input) {
        //other stuff here
    }
}
Posted by: Guest on July-01-2021
2

c# call base constructor

public class MyExceptionClass : Exception
{
    public MyExceptionClass(string message, string extrainfo) : base(message)
    {
        //other stuff here
    }
}
Posted by: Guest on December-03-2020

Code answers related to "Calling the base constructor in C#"

C# Answers by Framework

Browse Popular Code Answers by Language