title: shift right operator on strings in c#
body: <p>I have a stream reader object "file" and a character type variable "hex"</p>
  
  <pre><code>System.IO.StreamReader file = new System.IO.StreamReader(filename);
  
  char[] hex=new char[20];
  int @base;
  </code></pre>
  
  <p>the code i want to implement is </p>
  
  <pre><code>        string line;
         while ((line=file.ReadLine()) != null) //Reading each address from trace file
          {
  
              if (@base != 10)
              {          
                 line &gt;&gt; hex;  
                   ///this line giving errors, as shift right cannot be implemented on string types
                  address = changebase(hex, @base);
  
              }
              else
                  line &gt;&gt; address;
  </code></pre>
  
  <p>I am making a cache memory hit and miss project.
  But in c# shift right cannot be applied to string variables, so any other option to implement the line of code .. Please any help</p>
  
  <p>Any other way to implement this line</p>