<?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 CodedValue object is missing Name property in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103675#M10496</link>
    <description>&lt;P&gt;In 20+ years of programming I have seen some odd things, this may be the oddest.&lt;/P&gt;&lt;P&gt;This is for a Xamarin Forms app running on iOS.&amp;nbsp; Currently using 100.6 API&lt;/P&gt;&lt;P&gt;In our app we use domains as a bound property on Picker controls and use the Name as the display field.&amp;nbsp; All pretty straight forward stuff.&amp;nbsp; &amp;nbsp;This is been working for ages without issue.&lt;/P&gt;&lt;P&gt;Recently we started to see an issue with the picker controls not loading.&amp;nbsp; After much investigation I came to notice in the debugger that the CodeValue objects only have a Code property no Name property.&amp;nbsp; It is just not there (see below).&amp;nbsp; If that was not strange enough.&amp;nbsp; It only happens on devices, if I run the application on the iOS simulator everything behaves as expected.&amp;nbsp; We see no errors, and as stated it is not that the Name property is empty, it is not on the object.&amp;nbsp; Also we see this on many different iOS versions from 14.3-15.0.&amp;nbsp; If I change the display property of the picker the control loads as expected, but the user has no idea what the codes mean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeHershman_0-1633027997545.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24293i9CFC7E4D27866FD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_0-1633027997545.png" alt="JoeHershman_0-1633027997545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 18:58:42 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2021-09-30T18:58:42Z</dc:date>
    <item>
      <title>CodedValue object is missing Name property</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103675#M10496</link>
      <description>&lt;P&gt;In 20+ years of programming I have seen some odd things, this may be the oddest.&lt;/P&gt;&lt;P&gt;This is for a Xamarin Forms app running on iOS.&amp;nbsp; Currently using 100.6 API&lt;/P&gt;&lt;P&gt;In our app we use domains as a bound property on Picker controls and use the Name as the display field.&amp;nbsp; All pretty straight forward stuff.&amp;nbsp; &amp;nbsp;This is been working for ages without issue.&lt;/P&gt;&lt;P&gt;Recently we started to see an issue with the picker controls not loading.&amp;nbsp; After much investigation I came to notice in the debugger that the CodeValue objects only have a Code property no Name property.&amp;nbsp; It is just not there (see below).&amp;nbsp; If that was not strange enough.&amp;nbsp; It only happens on devices, if I run the application on the iOS simulator everything behaves as expected.&amp;nbsp; We see no errors, and as stated it is not that the Name property is empty, it is not on the object.&amp;nbsp; Also we see this on many different iOS versions from 14.3-15.0.&amp;nbsp; If I change the display property of the picker the control loads as expected, but the user has no idea what the codes mean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeHershman_0-1633027997545.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24293i9CFC7E4D27866FD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeHershman_0-1633027997545.png" alt="JoeHershman_0-1633027997545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 18:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103675#M10496</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2021-09-30T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: CodedValue object is missing Name property</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103699#M10497</link>
      <description>&lt;P&gt;The Name property is on the parent class. It just looks like the inspector window for some reason isn't showing the parent class. Or it could be the iOS Linker purging it if it isn't being used.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 19:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103699#M10497</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-09-30T19:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: CodedValue object is missing Name property</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103710#M10498</link>
      <description>&lt;P&gt;To add to Morten's information&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1052"&gt;@dotMorten_esri&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The Name property is on the parent class. It just looks like the inspector window for some reason isn't showing the parent class. Or it could be the iOS Linker purging it if it isn't being used.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The issue does seem to be the iOS Linker.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The only place Name is used in the application is as a DisplayMemberPath in the control in Xaml.&amp;nbsp; This must not give the linker enough info.&lt;/P&gt;&lt;P&gt;I added this code which doesn't do anything besides using the Name property&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if ( domain != null )
{
	foreach (var codedValue in domain.CodedValues)
	{
		Console.WriteLine(codedValue.Name);
	}
}&lt;/LI-CODE&gt;&lt;P&gt;With this code added everything behaves correctly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 20:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/codedvalue-object-is-missing-name-property/m-p/1103710#M10498</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2021-09-30T20:00:48Z</dc:date>
    </item>
  </channel>
</rss>

