C# object' does not contain a definition for 'Length' and no extension method 'Length' accepting a first argument of type 'object' could be found
<p>what i did wrong here? Anyone can sugest a fix or give me a insight? Thanks :) The error is on last <strong>if</strong> statament.</p>

<p>Error   CS1061  'object' does not contain a definition for 'Length' and no extension method 'Length' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)</p>

<pre><code>private static string smethod_2(object object_0)
    {
        string text = string.Empty;
        for (int i = 0; i &lt; object_0.Length; i++)
        {
            byte b = object_0[i];
            int num = (int)b;
            int num2 = num &amp; 15;
            int num3 = num &gt;&gt; 4 &amp; 15;
            if (num3 &gt; 9)
            {
                text += ((char)(num3 - 10 + 65)).ToString();
            }
            else
            {
                text += num3.ToString();
            }
            if (num2 &gt; 9)
            {
                text += ((char)(num2 - 10 + 65)).ToString();
            }
            else
            {
                text += num2.ToString();
            }
            if (i + 1 != object_0.Length &amp;&amp; (i + 1) % 2 == 0)
            {
                text += "-"();
            }
        }
        return text;
    }
</code></pre>