Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9203371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:27:32+00:00 2026-06-17T23:27:32+00:00

Possible Duplicate: Why Doesn’t C# Allow Static Methods to Implement an Interface? I have

  • 0

Possible Duplicate:
Why Doesn’t C# Allow Static Methods to Implement an Interface?

I have code like this that says I can’t implement a static methods:

public static class AuxiliaryHelper : IAuxiliaryHelper
{
    /// <summary>
    /// Writes the response.
    /// </summary>
    /// <param name="jsonObj">The json object that gets turned in JSON and written out.</param>
    public static void WriteResponse(this object jsonObj)
    { ....

Can I get an interface for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:27:33+00:00Added an answer on June 17, 2026 at 11:27 pm

    Short answer: No.

    Longer answer:

    This concept doesn’t really make any sense. The point of an interface is to define a base type that describes a contract for various implementations. I can declare a variable using a static type of IFoo, which tells the compiler I don’t know what type this will be at runtime, but I assure you it will have a certain set of methods. – Thus, the compiler will let you call those methods, which will be resolved at runtime.

    A static method is always bound to one and only one class, so there’s no instance to refer to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why doesn't Java allow overriding of static methods? Is there any legitimate
Possible Duplicate: In C++ why can’t I write a for() loop like this: for(
Possible Duplicate: Re-entrant locks in C# If I write some code like this: class
Possible Duplicate: error using include_once with a php variable My code is like this:
Possible Duplicate: JQuery Datepicker with text input that doesn't allow user input I'm developing
Possible Duplicate: Why doesn't this division work in python? A simple problem I'm having
Possible Duplicate: getElementByClass().setAttribute doesn't work Why this: document.getElementsByClassName('cke_source').setAttribute('name', mymessage) Is returning: TypeError: Object #<NodeList>
Possible Duplicate: CountDownTimer- that the user increments. Issues I have to make an application
Possible Duplicate: Why doesn’t Java allow generic subclasses of Throwable? I'm trying to make
Possible Duplicate: C++ Static member method call on class instance Today I discovered that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.