c# - How to get reference to object A inside A's class?
<p>In my SharePoint 2010 c# / asp.net site, I have a class defined like</p>

<pre><code>namespace PDF_Library.VisualWebPart1
{
    public partial class PDF_Library : Usercontrol   
    {
         public static PDF_Library current;
         protected void Page_Load(object sender, EventArgs e)
         {
              current = (PDF_Library)this; 
         }
    }
}


public static class Page_State
{
    public static Page is_display()
    {
        return PDF_Library.current.Page; // didn't work...
    }
}
</code></pre>

<p>It doesn't have a constructor. 
How can I get the reference to <code>the current instance of this class</code>? </p>

<p>I tried something like this in the top</p>

<p><code>public static PDF_Library current;</code></p>

<p>Then in a function it had</p>

<p><code>current = (PDF_Library)this;</code></p>

<p>But that didn't work...</p>
