mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[C#/en] Fix to "extension methods"
over using "extension functions", it's more accurate.
This commit is contained in:
parent
5b0db44e7c
commit
23b35d9da0
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user