title: Are you missing a using directive or an assembly reference in c# on creating Obect of different class
body: <p>I am new to c# (had c++ background before).</p>
  
  <p>I have class "MyClass" which creates an object of another class "Symbols" in the same namespace. I create the object of class "Symbols" in order to define the function "add_symbol()" which is called from "MyClass".</p>
  
  <p>In c++ it was quiet easy:</p>
  
  <pre><code>void NameOfTheClass::NameOfTheFunction()
  {
  }
  </code></pre>
  
  <p>But i don't know how to do in c#.
  I tried the code below and got the following error(see at last).</p>
  
  <pre><code>using System;
  using System.IO;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace shekhar_final
  {
  
      public class Symbols 
      {
          public void add_symbol(byte processingValue) //called from MyClass
          {
              Console.WriteLine(processingValue);
          }
       }  
  
      public class MyClass
      {
          public static void Main(string[] args)
          {
              Symbols ObjSym =new ObjSym(); //Here is the error
              using (var stream = new BinaryReader(System.IO.File.OpenRead(args[0])))
              {
                  while (stream.BaseStream.Position &lt; stream.BaseStream.Length)
                  {
                      byte processingValue = stream.ReadByte();
                      ObjSym.add_symbol(processingValue); //This function is called which is defined in Symbol class
                  }
              }
          }
      }
  
  
  }
  </code></pre>
  
  <p>The error is (I have pointed the line causing this error in my code) :</p>
  
  <pre><code>error CS0246: The type or namespace name `ObjSym' could not be found. Are you missing a using directive or an assembly reference?
  </code></pre>
  
  <p><strong>Please help me in removing this error and any extra guidance is also appreciated because i an new to c#, Thanks</strong></p>