C#C
C#3y ago
Mek

❔ ✅ get unknown range of list to display?

internal record Evidence(string Name)
{
    public static Evidence None = new Evidence("None");
    public static Evidence Emf5 = new Evidence("EMF 5");
    public static Evidence SpiritBox = new Evidence("Spirit Box");
    public static Evidence Writing = new Evidence("Ghost Writing");
    public static Evidence Dots = new Evidence("DOTs Projector");
    public static Evidence Ultraviolet = new Evidence("Ultraviolet");
    public static Evidence Freezing = new Evidence("Freezing Temperatures");
    public static Evidence GhostOrbs = new Evidence("Ghost Orbs");

    public override string ToString() => Name;
}
this information is generated into a string like string evidence = "EMF 5, Spirit Box, Ghost Writing";. Knowing that it's not the same evidence every time, how can I cut off the last piece of evidence and display the first two?
Was this page helpful?