Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test string format with curly braces as a value
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 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!"); string s1="{0}"; string s2 = s1.Trim(new char[] { '{', '}' }); string rez = String.Format("test value with curly braces: {0}", s1); Console.WriteLine(rez); string rez2 = String.Format("test2 value with curly braces: {0}", s2); Console.WriteLine(rez2); } } }
run
|
edit
|
history
|
help
0
C# Programming Exercise 3
fracOp
newDivQ DONE - adding UniqueShuffle
Rextester
Test Random
adxasxsd
Pramod
money
custom Generic stack Implementation
Finding a Substring in a Main String