Kai
Kai
CC#
Created by Kai on 8/21/2023 in #help
❔ Is there a way to make this neater?
public void AddTags(string tag)
{
Tags?.Add(tag);
Tags = Tags;
}

public void RemoveTag(string tag)
{
Tags?.Remove(tag);
Tags = Tags;
}

private HashSet<String>? Tags { get; set; }
public void AddTags(string tag)
{
Tags?.Add(tag);
Tags = Tags;
}

public void RemoveTag(string tag)
{
Tags?.Remove(tag);
Tags = Tags;
}

private HashSet<String>? Tags { get; set; }
I feel like I can do it with {get; set;} but idk how
28 replies
CC#
Created by Kai on 11/16/2022 in #help
Use class from different project in my tests project [Answered]
9 replies