C
cbmeeks
Hope I'm using the right terminology. Anyway, say I have a class
like:
class Animal
{
public double GetValues()
{......}
public void FilterBy(string text);
{......}
}
Now, I would like to add something like:
Animal a = new Animal();
a.GetValues();
a.GetValues().FilterBy("cats");
How would I add the FilterBy method extension?
I already have the logic for the FilterBy but its a separate method.
Thanks for any suggestions!
like:
class Animal
{
public double GetValues()
{......}
public void FilterBy(string text);
{......}
}
Now, I would like to add something like:
Animal a = new Animal();
a.GetValues();
a.GetValues().FilterBy("cats");
How would I add the FilterBy method extension?
I already have the logic for the FilterBy but its a separate method.
Thanks for any suggestions!