title: get a value from an object property and assign it to a C # string value
body: <p>I have a below code to capture an objects values:</p>
  <pre><code>var key = fulfillment.GetType().GetProperties().FirstOrDefault(p =&gt; p.Name.ToLower().Contains(&quot;operator&quot;)).GetValue(fulfillment);
  </code></pre>
  <p>the code return:</p>
  <p><a href="https://i.stack.imgur.com/JoZH6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JoZH6.png" alt="enter image description here" /></a></p>
  <p>the Operator property type is:</p>
  <pre><code>[JsonProperty(PropertyName = &quot;operator&quot;)] 
  public object Operator { get; set; }
  </code></pre>
  <p>i want to get the name value of the index 1 -&gt; <code>OMS_OPERATOR_AUTOMATED</code> and assign it to another string variable. How can i do this  ?</p>