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