how to design the component in c# then client can be define parameter at begin and whenever they want to complete the operation using information
<p>i want to make a component that they can use like this [following]</p>

<p>they can define directly</p>

<pre><code>myControl control = new myControl("information","info","some other info");

myControl control = new myControl();
</code></pre>

<p>the both need to be valid;</p>

<p>they can make operation if they already set the value like</p>

<pre><code>control.completemytask();  // it's need to working if they declare information otherwise thrown a error
</code></pre>

<p>they can make operation even if they not declare the value by declare the value when complete the operation </p>

<p>like</p>

<pre><code>control.completetask("information","info","some other info");
</code></pre>

<p>how  i can do this in c#.</p>

<p>are anyone show me the code then i can know this easily.</p>
