Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Extension Method Sample
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world! ".ExtensionMethod("Oh, yeahh!")); } } public static class MyFirstExtension { public static string ExtensionMethod(this string original, string added) { return original + added; } } }
run
|
edit
|
history
|
help
2
Main3
Reference vs Value types (aka Classes vs Structs) in C#
Pascal Triangle
salary
Collection_ basic datastructure brushup
ruSrib
New House Exam 11 April
Extension Methods (edited)
Composition
adxasxsd