Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

344
Views
How to make all methods from static class available in another static class in c#

I would like add additional c# methods to a external static class that can't be modified. i.e create a wrapper class for convenience containing the methods of the external static class + my own static methods.

I first wanted to inherit my own class from the external static class but I discover that static classes are sealed and can't be inherited form.

What would be the best way to do this?

Thanks a lot for you help

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Proxy the calls, per Llama's indication

public static class YourClass{

  public SomeType TheirMethod(..){
    return TheirClass.TheirMethod(...);
  }

...
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!