Skip to content

Text describing extension methods does not match example using extension block #50803

@SIG-ILL

Description

@SIG-ILL

Type of issue

Missing information

Description

The text explaining how to define and call an extension method describes the older style of creating extension methods, while the example uses the C# 14 extension block to do so. This creates inconsistencies between text and example.

Perhaps having two section explaining both the old and the new style would be beneficial.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/how-to-implement-and-call-a-custom-extension-method

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/programming-guide/classes-and-structs/how-to-implement-and-call-a-custom-extension-method.md

Document Version Independent Id

1f163906-565e-a6c9-513e-bf3538644b48

Platform Id

bd78dc39-937f-8f60-5a89-bc4dece2f4ef

Article author

@BillWagner

Metadata

  • ID: 62fe7c8c-e072-dff8-1ee8-3aa13f751b49
  • PlatformId: bd78dc39-937f-8f60-5a89-bc4dece2f4ef
  • Service: dotnet-csharp
  • Sub-service: fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions