private void Page_Load(object sender, System.EventArgs e) { LogConsumer consumer = new LogConsumer(); int x = consumer.Method1(consumer.x); string str = consumer.Method2(consumer.xx); }