title: How to clear the default gateway of a network interface (nic) using C#
body: <p>I'm currently changing the default gateway using:</p>
  
  <pre><code>ManagementBaseObject gateway = mo.GetMethodParameters("SetGateways");
  gateway["DefaultIPGateway"] = new string[] { "192.168.0.1" };
  var r = mo.InvokeMethod("SetGateways", gateway, null);
  </code></pre>
  
  <p>What I want to know is how can I clear the gateway, I tried empty string and null values as parameters instead of "192.168.0.1" but didn't work. Anyone has any ideas about this?</p>
  
  <p>Thanks</p>