title: How to convert C# Resource File Strings into methods and not just properties?
body: <p>Example, the EntityFramework Microsoft.EntityFrameworkCore.Relational project has the following text in the resource files:</p>
  
  <pre><code>...
  &lt;data name="FromSqlMissingColumn" xml:space="preserve"&gt;
    &lt;value&gt;The required column '{column}' was not present in the results of a 'FromSql' operation.&lt;/value&gt;
  &lt;/data&gt;
  ...
  </code></pre>
  
  <p>which generates the following C# code:</p>
  
  <pre><code>...
  /// &lt;summary&gt;
  /// The required column '{column}' was not present in the results of a 'FromSql' operation.
  /// &lt;/summary&gt;
  public static string FromSqlMissingColumn([CanBeNull] object column)
  {
      return string.Format(CultureInfo.CurrentCulture, GetString("FromSqlMissingColumn", "column"), column);
  }
  ...
  private static string GetString(string name, params string[] formatterNames)
  {
      var value = _resourceManager.GetString(name);
  
      Debug.Assert(value != null);
  
      if (formatterNames != null)
      {
          for (var i = 0; i &lt; formatterNames.Length; i++)
          {
              value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}");
          }
      }
  
      return value;
  }
  ...
  </code></pre>
  
  <p>But when I edit the file in VS and save it, I get only simple properties generated, like:</p>
  
  <pre><code>...
  /// &lt;summary&gt;
  /// The required column '{column}' was not present in the results of a 'FromSql' operation.
  /// &lt;/summary&gt;
  public static string FromSqlMissingColumn
  {
      get { return ResourceManager.GetString("FromSqlMissingColumn"); }
  }
  ...
  </code></pre>
  
  <p>The files in question can be found here:</p>
  
  <ul>
  <li><a href="https://github.com/aspnet/EntityFramework/blob/92989dae4874b3bd2b06662a801f1e9b6127b8a2/src/Microsoft.EntityFrameworkCore.Relational/Properties/RelationalStrings.resx" rel="noreferrer">RelationalStrings.resx</a></li>
  <li><a href="https://github.com/aspnet/EntityFramework/blob/92989dae4874b3bd2b06662a801f1e9b6127b8a2/src/Microsoft.EntityFrameworkCore.Relational/Properties/RelationalStrings.Designer.cs" rel="noreferrer">RelationalStrings.Designer.cs</a></li>
  </ul>
  
  <p>So the question again - How did they do it, and how could I get the same result?</p>