title: How to create a TwinCollection with IDictionary<string, object> for GeoPoint property for Azure IoT Hub?
body: <p>I have an IoT Device with a property that is a Geopoint.</p>
  <p>I am using the Azure IoT C# sdk using the following GitHub examples: <a href="https://github.com/Azure-Samples/azure-iot-samples-csharp" rel="nofollow noreferrer">
  azure-iot-samples-csharp</a></p>
  <p>I have code calling the <code>public static TwinCollection CreatePropertyPatch(IDictionary&lt;string, object&gt; propertyPairs)</code> method.</p>
  <p>I know the format of the JSON needs to be:</p>
  <pre><code>{
    &quot;DeviceLocation&quot;: {
      &quot;lat&quot;: 47.64263,
      &quot;lon&quot;: -122.13035,
      &quot;alt&quot;: 0
    }
  }
  </code></pre>
  <p>Is there a way to do this with IDictionary&lt;string, object&gt;??</p>
  <p>If so what would the c# sample code look like?</p>