title: C# - Getting a String from BSTR *
body: <p>In a c# application I am working on I am using an API to pull back customer information, and am trying to get a string of the user's email address - the API documentation states that I can call the following on an object to pull back a notefield string (the email address can only be get/set from this function)</p>
  
  <pre><code>HRESULT NoteField( [in] BSTR bstrFieldName, [out, retval] BSTR *pNoteField);
  </code></pre>
  
  <p>However when I am calling this in c# I get back an empty string</p>
  
  <pre><code>string email = object.NoteField["Email"]
  </code></pre>
  
  <p>How would I be able to get the value?</p>