title: What is wrong with the property or indexer in the example?
body: <p>Code Here:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace ConsoleApplication1
  {
      class Program : iTest 
      {
          static void Main(string[] args)
          {
              Program pp = new Program();
              Console.ReadKey();
          }
  
          public void  FistName
          {
              get 
              { 
  
              }
              set 
              { 
  
              }
          }
  
          public void  LastName
          {
              get 
              { 
  
              }
              set 
              { 
  
              }
          }
  
          public string  changeName(string nameToBeChanged)
          {
             return null;
          }
      }
  
      interface iTest
      {
          public void FistName { get; set; }
          public void LastName { get; set; }
          public string changeName(string nameToBeChanged);
      }
  }
  </code></pre>
  
  <p>Error Code:</p>
  
  <pre><code>Error   1   'FistName': property or indexer cannot have void type   \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   16  22  ConsoleApplication10
  Error   2   'LastName': property or indexer cannot have void type   \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   28  22  ConsoleApplication10
  Error   3   The modifier 'public' is not valid for this item    \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   48  21  ConsoleApplication10
  Error   4   'FistName': property or indexer cannot have void type   \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   48  21  ConsoleApplication10
  Error   5   The modifier 'public' is not valid for this item    \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   49  21  ConsoleApplication10
  Error   6   'LastName': property or indexer cannot have void type   \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   49  21  ConsoleApplication10
  Error   7   The modifier 'public' is not valid for this item    \\state.sd.local\Home\IT\ITPR13266\Documents\Visual Studio 2010\Projects\ConsoleApplication10\ConsoleApplication10\Program.cs   50  23  ConsoleApplication10
  </code></pre>