public IExclusions AsReadOnly() { return(new Exclusions { NameSpaces = NameSpaces.ToList().AsReadOnly(), Types = Types.ToList().AsReadOnly() }); }