title: C# code re-use via namespaces
body: <p>I like to create a file full of custom functions which I have made, which I may use in another project or something. Now I don't fully understand how to go about this, normally in a language like php, you'd just create the php file and then go include("cust_lib.php") or whatever the file is called.</p>
  
  <p>Now I think that the process involves the library having its own namespace, then either go using custom_lib; or custom_lib:: within the script (I don't want to get into a discussion over which is the best way to go here).</p>
  
  <p>Is this right? Or should I create the library and convert it to a .dll, if so how do I go about this, what sort of syntax does a dll have inside it etc.</p>
  
  <p>However if its just file within one project then I don't need to go down that route do I? I can just create the namespace and use that?</p>
  
  <p>This is what I'm working for at the moment, and thought it would be something like this</p>
  
  <pre><code>namespace Custom_Lib{
    ~~functions to go here~~
  }
  </code></pre>
  
  <p>However the functions have to exist within a class don't they? So that becomes something like</p>
  
  <pre>namespace Custom_Lib{
    class custom_lib{
  
      public string function1(string input){
        return input;
      }
  
    }
  }
  </pre>
  
  <p>So some help, pointers, examples would be appreciated so I can wrap my head around this</p>
  
  <p>Thanks,
  Psy.</p>
  
  <p>(Yes I call them functions, that just comes from a long php/js etc background)</p>