Esempio n. 1
0
 static int Compare(Flower f1, Flower f2) //---Sort
 {
     return(f1.Price == f2.Price? 0 : f1.Price > f2.Price ? 1 : -1);
 }
Esempio n. 2
0
 static void ShowFlower_2(Flower f, char ch)//---ForEach
 {
     Console.WriteLine(f.Type + "  " + f.Name + "  " + f.Price);
 }
Esempio n. 3
0
 static bool ExpenciveOnly(Flower f)//---FindAll
 {
     return(f.Price > 50);
 }
Esempio n. 4
0
 static bool FindBlooming(Flower flower)//---FindAll
 {
     return(flower.Type == "Квітучі");
 }
Esempio n. 5
0
 static string ComposeStrings(Flower f)//---Select
 {
     return(f.Name + ":" + f.Type + ":" + f.Price.ToString());
 }
Esempio n. 6
0
 static string SelectNames_2(Flower f)//  -- Select
 {
     return(f.Name);
 }
Esempio n. 7
0
 static string SelectNames(Flower f, int ind)//  -- Select
 {
     return("[" + ind.ToString() + "]" + f.Name);
 }