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