Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Create DataBindings
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string dataType = "string"; string baseString = "public {0} {1}\r\n\t\t {{\r\n\t\t\t\tget {{ return {2}; }}\r\n\t\t\t\tset\r\n\t\t\t\t{{\r\n\t\t\t\t\t {3} = value;\r\n\t\t\t\t\t NotifyPropertyChanged(\"{4}\");\r\n\t\t\t\t}}\r\n\t\t }}"; List<string> stringList = new List<string>() { "SelectedMilestone", "SelectedRepo", "SelectedOwner","SelectedDeveloper" }; foreach (string str in stringList) { string publicName = str; string privateName = str; privateName = privateName.Replace("Selected","_selected"); Console.WriteLine(string.Format(baseString, dataType,publicName,privateName,privateName,publicName)); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
DaysOfYear
BiologyQuestions
Plt-D v.0.8.4
P.I. Works
Math Main
HSC
Roman Numbers - Sorting
pascal
Arreglo
test
Please log in to post a comment.