title: Unable to call method in Main()?
body: <p>Hello I am learning C#.</p>
  
  <p>When trying to call my Method in a instance, I don't get the option for intellesence and am forced to type it. </p>
  
  <p>I also have the current two errors when trying to build:</p>
  
  <p>1.)"'string[]' does not contain a definition for 'LastWriteTime' and no extension method 'LastWriteTime' accepting a first argument of type 'string[]' could be found."</p>
  
  <p>2.)"Member 'MyClass.Move_Modified_Files()' cannot be accessed with an instance reference; qualify it with a type name instead"</p>
  
  <p>Any leads would be greatly appreciated!</p>
  
  <p>Here is my code:</p>
  
  <pre><code>namespace File_Mover
  {
      public class MyClass
      {
          public static string src = @"C:\Users\Bold Defiance\Desktop\FolderA";
          public static string dst = @"C:\Users\Bold Defiance\Desktop\FolderB";
         public static string[] files = System.IO.Directory.GetFiles(src, "*.txt");
  
          public static void Move_Modified_Files()
          {
              try
              {
                  if (files.LastWriteTime.Date == DateTime.Today.Date)
                  {
                      File.Move(src, dst);
                      Console.WriteLine("Modified files in {0} were moved to {1}", src, dst);
                  }
                  else
                  {
                      Console.WriteLine("No new or modified files were created today.");
                  }
              }
              catch (Exception e)
              {
                  Console.WriteLine("The process failed: {0}", e.ToString());
              }
          }
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              MyClass cls = new MyClass();
              cls.Move_Modified_Files();
          }
      }
  }
  </code></pre>