Skip to content

Commit 20dcbc8

Browse files
authored
Minor typos (#2294)
1 parent 7140e04 commit 20dcbc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/extension-methods/about.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ namespace MyExtensions
1717
// => 2
1818
```
1919

20-
Extension methods are brought into scope at the namespace level. This means that if you are in different namespace to the one the extension method is defined in, it's namespace must be in a `using` directive first; For example, if we wanted to use the above example in our code, we would first need a `using MyExtensions` directive. If you are in the same namespace as the one the extension method is defined in, you can use the extension methods without a `using` directive.
20+
Extension methods are brought into scope at the namespace level. This means that if you are in different namespace to the one the extension method is defined in, its namespace must be in a `using` directive first; for example, if we wanted to use the above example in our code, we would first need a `using MyExtensions` directive. If you are in the same namespace as the one the extension method is defined in, you can use the extension methods without a `using` directive.
2121

22-
A well-known example of extension methods are the [LINQ][linq] standard query operators that add query functionality to the existing IEnumerable types. To bring these into scope we need a `using System.Linq;` directives.
22+
A well-known example of extension methods are the [LINQ][linq] standard query operators that add query functionality to the existing IEnumerable types. To bring these into scope we need a `using System.Linq;` directive.
2323

2424
[linq]: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/
2525
[extension-methods]: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods

0 commit comments

Comments
 (0)