(object) is a 'field' but is used like a 'type'

后端 未结 3 1572
孤独总比滥情好
孤独总比滥情好 2020-12-02 01:52

My intellisense is giving me the error: \'ClassLibrary1.GetTimeZone.myWorldTime\' is a \'field\' but is used like a \'type\'

Any idea what I\'m doing wrong?

3条回答
  •  囚心锁ツ
    2020-12-02 02:47

    LoadData seems to be a static function, so you should do this instead (without an object instance):

    ChaosSoftware.WorldTime.LoadData("blahblah...");
    

提交回复
热议问题