How to call a static method? I want to call it from the class that I created, I want to get the location from IP. I declared this, but I need to make a method call ... as static ...
To be honest with you, I'm pretty confused here, do I need to create an instance of address , city , etc.?
I have done it so far;
LocationTools.cs
public static class LocationTools { public static void GetLocationFromIP(string address, out string city, out string region, out string country, out double? latitude, out double? longitude) {
Home.cs
public string IPAPIKey { get { return WebConfigurationManager.AppSettings["IPAPIKey"]; } }
}
Mjcoder
source share