Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Planet-D
//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 Plts { public string name; public int xCord; public int numberBlts; } public class Program { public static void Main(string[] args) { Program classProg = new Program (); List<Plts> listPlts = new List<Plts>(); listPlts.Add(new Plts {name = "HRed", xCord = 4, numberBlts = 10}); listPlts.Add(new Plts {name = "HBlue", xCord = 12, numberBlts = 10}); listPlts.Add(new Plts {name = "net1", xCord = 11, numberBlts = 20}); listPlts.Add(new Plts {name = "net2", xCord = 5, numberBlts = 20}); listPlts.Add(new Plts {name = "net3", xCord = 8, numberBlts = 30}); foreach (Plts llistPlst in listPlts) Console.Write(" | Основа1: " + llistPlst.name); Console.WriteLine(""); classProg.BPlrs(listPlts); Console.WriteLine(""); foreach (Plts llistPlst in listPlts) Console.Write(" | Основа2: " + llistPlst.name); Console.WriteLine(""); //Your code goes here //Console.WriteLine("Hello, world!"); } public void BPlrs(List<Plts> l) { foreach (Plts lDemo in l) { Console.Write(" | " + lDemo.name); } } } }
run
|
edit
|
history
|
help
0
FirstNonRepeatCharOfString
valida fechas sura
Abstract Method Design Pattern in C#
Lottery
Problem: fb_series
Hex-String Encoder/Decoder + Obfuscator by Cuppujeano
custom Queue Implementation
1
asxasxd
axasd