<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot cast between QueryFilter and SpatialQueryFilter in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-cast-between-queryfilter-and/m-p/676251#M8488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A coworker pointed out that the SDK may have defined an implicit type conversion on the SpatialQueryFilter class.&amp;nbsp; See &lt;A href="https://msdn.microsoft.com/en-us/library/z5z9kes2.aspx" title="https://msdn.microsoft.com/en-us/library/z5z9kes2.aspx"&gt;implicit (C# Reference).&lt;/A&gt;​ If so, the properties of SpatialQueryFilter would persist when cast to QueryFilter, according the reference. Is this correct (ESRI)?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 20:27:37 GMT</pubDate>
    <dc:creator>ShaneBuscher</dc:creator>
    <dc:date>2016-07-27T20:27:37Z</dc:date>
    <item>
      <title>Cannot cast between QueryFilter and SpatialQueryFilter</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-cast-between-queryfilter-and/m-p/676250#M8487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to cast from a SpatialQueryFilter up to a QueryFilter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var spatialQueryFilter = new SpatialQueryFilter();&lt;/P&gt;&lt;P&gt;QueryFilter queryFilter = spatialQueryFilter;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the result type of the implicit cast for &lt;EM&gt;queryFilter&lt;/EM&gt; is still SpatialQueryFilter.&amp;nbsp; Casting (explicitly) the other way around does not work either. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately I want to pass either a QueryFilter or its SpatialQueryFilter subclass into FeatureLayer.FeatureTable.QueyAsync(QueryFilter).&amp;nbsp; Without being able to cast a SpatialQueryFilter to a QueryFilter, QueryAsync always returns no results because the Geometry property is null. I understand there are workarounds for this, but am wondering why the casts aren't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/cannot-cast-between-queryfilter-and/m-p/676250#M8487</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2016-07-26T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot cast between QueryFilter and SpatialQueryFilter</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/cannot-cast-between-queryfilter-and/m-p/676251#M8488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A coworker pointed out that the SDK may have defined an implicit type conversion on the SpatialQueryFilter class.&amp;nbsp; See &lt;A href="https://msdn.microsoft.com/en-us/library/z5z9kes2.aspx" title="https://msdn.microsoft.com/en-us/library/z5z9kes2.aspx"&gt;implicit (C# Reference).&lt;/A&gt;​ If so, the properties of SpatialQueryFilter would persist when cast to QueryFilter, according the reference. Is this correct (ESRI)?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/cannot-cast-between-queryfilter-and/m-p/676251#M8488</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2016-07-27T20:27:37Z</dc:date>
    </item>
  </channel>
</rss>

