title: Need a secure way to bypass License check condition in a public method
body: <p>I have two products A and B. A is a paid tool while B is a free tool. B uses the some dll of A. Now i have a method say</p>
  
  <pre><code> public void licenseCheck(bool test){....} 
  </code></pre>
  
  <p>this method contains a condition which gives alert "get license" if you dont have one. Now from one of the class of Product B i have to call licenseCheck method for some reason and since B is free and you dont need a license for it, it still gives "get license" Error. </p>
  
  <p>I tried i changed the signature of the method </p>
  
  <pre><code>licenseCheck( bool test, bool byPasslicense = false)
  </code></pre>
  
  <p>and use the byPasslicense variable to bypass the condition of license checking. I gave default value to it because this method is used at many places.
  This approach has some security issues as these dlls are used for many other paid products where licensing is required. some one can just call this method and pass "true" value to byPasslicense argument of  licenseCheck method. I dont want that. I just want it to bypass for  product B</p>
  
  <p><em>Note:
  this is a completed project and I cant just change the whole method, i just have to bypass the condition responsible for license checking in the licenseCheck method.</em></p>