今朝は頭が働きません。静的メソッドからいくつかのメンバーにアクセスするための助けが必要です。これがサンプルコードです。TestMethod ()がtestIntにアクセスできるようにこれを変更するにはどうすればよいですか?
public class TestPage
{
protected int testInt { get; set; }
protected void BuildSomething
{
// Can access here
}
[ScriptMethod, WebMethod]
public static void TestMethod()
{
// I am accessing this method from a PageMethod call on the clientside
// No access here
}
}