mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 14:27:51 +02:00
[C#/en] Fix to "extension methods"
over using "extension functions", it's more accurate.
This commit is contained in:
@@ -630,7 +630,7 @@ on a new line! ""Wow!"", the masses cried";
|
|||||||
|
|
||||||
public static class Extensions
|
public static class Extensions
|
||||||
{
|
{
|
||||||
// EXTENSION FUNCTIONS
|
// EXTENSION METHODS
|
||||||
public static void Print(this object obj)
|
public static void Print(this object obj)
|
||||||
{
|
{
|
||||||
Console.WriteLine(obj.ToString());
|
Console.WriteLine(obj.ToString());
|
||||||
|
Reference in New Issue
Block a user