Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git

This commit is contained in:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace TV
{
public class Show : IComparable<Show>
{
public string Name {get;set;}
public int Year {get;set;}
public int NumEpisodes {get;set;}
public List<string> Actors {get;set;}
public override string ToString() {
StringBuilder sb = new StringBuilder("featuring ");
foreach(string name in Actors){
sb.Append($"{name}, ");
}
string names = sb.Remove(sb.Length-2,2).ToString();
return $"{Name} ({Year}) - {NumEpisodes} episodes, {names}";
}
public int CompareTo(Show otherShow){
return this.Name.CompareTo(otherShow.Name);
}
}
}