ccStars
ccStars

Reputation: 825

Creating a custom method of a System Type

I am just curious if there is a way of adding a method to the system type i.e.

char.IsNull(value) 

i know a similar thing can be achieved by using an extension method but to call that i have to put 'M'.IsNull()

Upvotes: 4

Views: 64

Answers (1)

Marc Gravell
Marc Gravell

Reputation: 1062895

No, basically; there is an ongoing discussion (titled "extension everything") on the topic of whether to add such a feature, but right now (including the current C# 8 previews): no.

Upvotes: 6

Related Questions