Home
|
Misc
|
Run Code
|
Code Wall
|
Users
|
Feedback
|
Login
run code
Language:
Assembly
C#
C++
C
Common Lisp
F#
Go
Haskell
Java
Javascript
Lua
Node.js
Objective-C
Pascal
Perl
Php
Prolog
Python
Python 3
Ruby
Scala
Scheme
Sql Server
Visual Basic
Editor:
CodeMirror
EditArea
Simple
//C# 'Hello, world' //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) { var someList = new List
(); someList.Add(new AnyClass("value1")); someList.Add(new AnyClass("value2")); Console.WriteLine(someList.Concatenate(i => i.SomeProperty)); } } public static class Extensions { public static string Concatenate
(this IEnumerable
list, Func
func) { return String.Join("",list.Select(func)); } } internal class AnyClass { public AnyClass(string someProperty) { SomeProperty = someProperty; } public string SomeProperty { get; set; } } }
Show compiler warnings
[
+
]
Show input
Compilation time: 0.34 sec, absolute running time: 0.12 sec, cpu time 0.09 sec, average memory usage: 17 Mb, average nr of threads: 5
edit mode
|
history
value1value2