Hi all.
I'm reading about SOLID way of coding and am only looking at single Responsibility of objects (S).
I will be creating a string helper class and I'm wondering if I have two methods or more in the class, if I am still adhereing to SR if the methods only have one responsibility or is it that I should have two helper classes each with only on method?
for example
class String
{
public string Between(string src, string start, string end)
{
//some code to return a string from src
}
public string Outside(string src, string target)
{
//some code to return a string from src
}
}
Thanks for reading.