title: Xamarin.Forms json file stream reader NullException error
body: <p>System.ArgumentNullException: 'Value cannot be null.
  Parameter name: stream'</p>
  
  <p>This is the error. Have been researching some information for a while now but can not find an answer. I copied code and json File from GitHub.</p>
  
  <p>Code:</p>
  
  <pre><code>void AddMapStyle()
          {
              var assembly = typeof(PinMap).GetTypeInfo().Assembly;
              var stream = assembly.GetManifestResourceStream($"PcgDelivery.MapStyle.json");
              string styleFile;
              using (var reader = new System.IO.StreamReader(stream))
              {
                  styleFile = reader.ReadToEnd();
              }
  
              map.MapStyle = MapStyle.FromJson(styleFile);
          }
  </code></pre>
  
  <p>Is there something wrong with code or what? Json file is placed correctly. I also tried some different methods for reading json file but as you can see with no results.</p>