2 ms·
The essential difference is that extension methods are visible only in compilation units that explicitly import them, while adding a new method to an existing c
by tomp 14y ago
The essential difference is that extension methods are visible only in compilation units that explicitly import them, while adding a new method to an existing class makes it visible everywhere.