StackOverflow Questions for Tag: extension-methods

Tom Gullen
Tom Gullen

Reputation: 61765

Extension methods must be defined in a non-generic static class

Score: 284

Views: 446700

Answers: 12

Read More
iSofia
iSofia

Reputation: 1532

Xcode Source Editor option not displayed in Extensions

Score: 17

Views: 5925

Answers: 4

Read More
this. __curious_geek
this. __curious_geek

Reputation: 43217

Suggestions for String and DateTime utility functions library using Extension Methods

Score: 4

Views: 1750

Answers: 4

Read More
minch.dev
minch.dev

Reputation: 5

How to properly write a Kotlin extension for View class that would call either findViewById or requireViewById based on SDK/API version?

Score: 0

Views: 51

Answers: 0

Read More

Invoke extension method on an instance not a type in Dart

Score: 0

Views: 46

Answers: 1

Read More
Svish
Svish

Reputation: 158261

Does C# have extension properties?

Score: 959

Views: 299027

Answers: 8

Read More
Lee Atkinson
Lee Atkinson

Reputation: 2189

Ambiguous call between two C# extension generic methods one where T:class and other where T:struct

Score: 48

Views: 6115

Answers: 4

Read More
Leon Bambrick
Leon Bambrick

Reputation: 26306

Can I add extension methods to an existing static class?

Score: 648

Views: 284363

Answers: 18

Read More
jshall
jshall

Reputation: 323

Why does foreach fail to find my GetEnumerator extension method?

Score: 22

Views: 19682

Answers: 7

Read More
fearofawhackplanet
fearofawhackplanet

Reputation: 53446

Extension method resolution with nullable value type params

Score: 3

Views: 605

Answers: 5

Read More
Zejammydodger
Zejammydodger

Reputation: 85

random enum value for a generic enum type extension method

Score: 2

Views: 1313

Answers: 3

Read More
tawfiq
tawfiq

Reputation: 3

My ASP project can't access classes from a NuGet package I created

Score: 0

Views: 123

Answers: 1

Read More
Carmen
Carmen

Reputation: 1704

Scala: An extension method was tried, but could not be fully constructed (same extension name on multiple classes)

Score: 2

Views: 981

Answers: 2

Read More
MackDaddy
MackDaddy

Reputation: 601

PHP Object Extension Question

Score: 1

Views: 430

Answers: 2

Read More
Thor
Thor

Reputation: 10068

Does Java support Swift-like class extensions?

Score: 17

Views: 5335

Answers: 4

Read More
hugoware
hugoware

Reputation: 36397

Anonymous Types - Are there any distingushing characteristics?

Score: 32

Views: 4773

Answers: 4

Read More
ChiliYago
ChiliYago

Reputation: 12319

Extension Methods not Recognized

Score: 68

Views: 57592

Answers: 13

Read More
tribbloid
tribbloid

Reputation: 3858

In Scala 3, how to write extension for a dependent or polymorphic function?

Score: 0

Views: 73

Answers: 1

Read More
b2Lord
b2Lord

Reputation: 69

Best method to use IDataReader as IEnumerable<T>?

Score: 5

Views: 26135

Answers: 7

Read More
Shaul Behr
Shaul Behr

Reputation: 38073

How to get MethodInfo for generic extension method?

Score: 11

Views: 3628

Answers: 2

Read More
PreviousPage 1Next