asp.net mvc - how to give a instance name? -


i'm using third party scheduler in project here example, http://scheduler-net.com/docs/simple_.net_application_with_scheduler.html

        public actionresult index()          {             var scheduler = new dhxscheduler(this);             scheduler.loaddata = true;             scheduler.enabledataprocessor = true;             return view(scheduler);         } 

how can replace word "this" instance name ?

if understand question correctly, define constructor way:

public myconstructor() {    myinstance = this; } 

than can use myinstance instead of this.

hope helps.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -