title: How to access functions inside struct in C#
body: <pre><code>class Program
  { 
     public  struct course
     {
          public string name;
          public int elecode;
          public int credit;
  
  
          public static void getdetails()
          {
              Console.WriteLine("Enter your Name");
             Ele.name = Console.ReadLine();
  
          }
     }
  
      static void Main(string[] args)
      {
  
          course ele;
          ele.getdetails();
  
      }
  }
  </code></pre>