title: C# Sharepoint CSOM - Get the Display Name of a FieldValue
body: <p>I'm trying to display the values of a file's metadata (who created the file, time it was last updated etc) using the C# Sharepoint CSOM.</p>
  
  <p>I have created a function:</p>
  
  <pre><code>public static void PrintFileMeta(string path)
  {
          using (var context = GetContext())
          {
              File file = context.Web.GetFileByServerRelativeUrl(path);
  
              var item = file.ListItemAllFields;
  
              context.Load(file, f =&gt; f.ListItemAllFields);
  
              context.ExecuteQuery();
  
  
              foreach (string fieldName in item.FieldValues.Keys)
              {
                  Console.Write(fieldName);
                  Console.WriteLine(item.FieldValues[fieldName]);
              }
  
          }
  }
  </code></pre>
  
  <p>However this prints the internal name of the metadata e.g. 'Created_x0020_By' instead of 'Created By' (or whatever the display name of the metadata happens to be). Is there a way to print the display name? I've been searching and testing for a while now but haven't been able to find anything that would do the trick.</p>