Jump to content

Extension Methods: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 January 2025

  • curprev 16:5516:55, 17 January 2025 Chr1ss talk contribs 2,945 bytes −75 No edit summary
  • curprev 16:5316:53, 17 January 2025 Chr1ss talk contribs 3,020 bytes +3,020 Created page with "= Extension Methods = __TOC__ Extension methods, introduced in C# 3.0, allow to add new methods to exiting types. == Purpose == The purpose of extension methods is to extend the functionality of types without modifying their source code. == Example == Consider the following extension method: <pre> public static class StringExtensions { public static string Reverse(this string input) { char[] chars = input.ToCharArray(); Array.Reverse(chars);..."