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?
LoadData
is a static method. You call it on the type, not an instance.
ChaosSoftware.WorldTime.LoadData("worldtime.xml");
This needs to be placed inside a method in order to execute (constructor or other method).
Additionally, though not the reason for the error, you should use "
to delimit a string. In C#, single quotes are for character literals (that is, single characters). What you have will not compile.
You need to put the line in error in a class constructor or a method.
LoadData seems to be a static function, so you should do this instead (without an object instance):
ChaosSoftware.WorldTime.LoadData("blahblah...");