What is the proper names for the following mutating methods?

What is the most proper names to replace the name of Mutator_A and Mutator_B?
The names
  • must be descriptive so we know what they do only by reading their names
  • must not be too long
    static void Mutator_A(ref File file)
    {
      file = new File { Id = Random.Shared.Next(), Name = Path.GetRandomFileName() };
    }
    static void Mutator_B(File file)
    {
      file.Id = Random.Shared.Next();
      file.Name = Path.GetRandomFileName();
    }
    class File
    {
      public int Id;
      public string Name = null!;
    }
Was this page helpful?