This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
// Source | |
var source = new List<PlanilhaCusto>() | |
{ | |
new PlanilhaCusto{Id = 1, ParentId = null, Name = "Projetos", Amount = 0, Price = 0}, | |
new PlanilhaCusto{Id = 2, ParentId = 1, Name = "Arquitetura", Amount = 5, Price = 10}, | |
new PlanilhaCusto{Id = 3, ParentId = 1, Name = "Estrutura", Amount = 0, Price = 0}, | |
new PlanilhaCusto{Id = 4, ParentId = 3, Name = "Civil", Amount = 1, Price = 50}, | |
new PlanilhaCusto{Id = 5, ParentId = 3, Name = "Infra", Amount = 3, Price = 75}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var paragraph = @"V. M. Putinas | |
Margi sakalai | |
Lydėdami gęstančią žarą vėlai | |
Pakilo į dangų;;, margi sakalai. | |
Paniekinę žemės vylingus sapnus, | |
Padangėje ištiesė,,; savo sparnus. | |
Ir tarė margieji: negrįšim į žemę, | |
Kol josios kalnai ir pakalnės aptemę. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var persons = new [] | |
{ | |
new | |
{ | |
ID = 1, | |
FirstName = "John", | |
LastName = "Smith", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var text = | |
@"legacy,subid,converted,licPart,count | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL AC CE E-LTU,LIC-CP-EN-100,100 | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL OB USR E-LTU,LIC-CP-EN-100,100 | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL OG EP E-LTU,LIC-CP-EN-100,100 | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL AC CE E-LTU,LIC-CP-EN-100,100 | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL OB USR E-LTU,LIC-CP-EN-100,100 | |
Ent 100 EP Lic E-LTU,7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb,NL OG EP E-LTU,LIC-CP-EN-100,100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var legalTerms = new[] | |
{ | |
new LegalTerm | |
{ | |
Code = "101", | |
a = "one a", | |
b = "one b", | |
c = "one c", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var table = new DataTable(); | |
table.Columns.Add("legacy"); | |
table.Columns.Add("subid"); | |
table.Columns.Add("converted"); | |
table.Columns.Add("licPart"); | |
table.Columns.Add("count"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var xml = @" | |
<category name='.NET'> | |
<books> | |
<book>CLR via C#</book> | |
<book>Essential .NET</book> | |
</books> | |
</category>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
// Input | |
//1 | 0.1 | 0.2 | |
//1 | 0.2 | 0.4 | |
//1 | 0.1 | 0.2 | |
//2 | 0.1 | 0.2 | |
//2 | 0.1 | 0.2 | |
//2 | 0.1 | 0.2 | |
//3 | 0.3 | 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var btnCountViewsList = new List<BtnCountViews>() | |
{ | |
new BtnCountViews{DayOfYear= 1, BtnCount = 100, Views = 10 }, | |
new BtnCountViews{DayOfYear= 4, BtnCount = 101, Views = 11 }, | |
new BtnCountViews{DayOfYear= 5, BtnCount = 110, Views = 12 }, | |
new BtnCountViews{DayOfYear= 6, BtnCount = 105, Views = 10 }, | |
new BtnCountViews{DayOfYear= 8, BtnCount = 102, Views = 13 }, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var listOfPersons = new List<Person> | |
{ | |
new Person(){Id = 1, FirstName = "John", LastName = "Doe", CountryName = "UK", City = "London" }, | |
new Person(){Id = 2, FirstName = "Jane", LastName = "Doe", CountryName = "UK", City = "Manchester" }, | |
new Person(){Id = 3, FirstName = "Jim", LastName = "Boe", CountryName = "UK", City = "Brighton" }, | |
new Person(){Id = 4, FirstName = "Jack", LastName = "Dob", CountryName = "UK", City = "London" }, | |
}; |
OlderNewer