• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Extension method gives compilation error when can be accessed as static method

Resolved: Extension method gives compilation error when can be accessed as static method

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I declared an extension method as follows
And in my controller class, I included the namespace. But the program does not compile. But I could use the function as normal static method.
enter image description here
Any help will be appreciated.

Answer:

Your extension method can be accessed in the following ways
OR

If you have better answer, please add a comment about this, thank you!

.net .net-6.0 c#
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Resolved: Using AWK to count multiple patterns in a file

01/04/2023

Resolved: significance letter above bar graphic in wrong order

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.