Set multiple properties with one method
<p>So I have a c# class with three properties on it. </p>

<pre><code>public class ClassA
{
    public bool IsBool1;
    public bool IsBool2;
    public bool IsBool3;
}
</code></pre>

<p>I have a method that does the following.</p>

<pre><code>public void MethodA()
{
    ClassA c = GetCurrentClassA();
    c.IsBool1 = !c.IsBool1;
    ClassADataAccess.Update(c);
    this.BindClassADetails(c);
}
</code></pre>

<p>Now to keep from writing MethodA over for the other two properties is there a way to write a method that can handle all three?</p>

<p>Something maybe like this?</p>

<pre><code>public void UpdateAndBind(bool value)
{
    ClassA c = GetCurrentClassA();

    ///what to do here to set the property?

    ClassADataAccess.Update(c);
    this.BindClassADetails();
}
</code></pre>
