I have a class which talks to a wcf
public class Network { private const string PROXY_HOSTNAME_PARAM = "ProxyHostname"; public string GetMyNetwork() { MyProxy myprox = MyProxy.Instance; string network = string.Empty; network = myprox .GetNetworkConfig(); return network; } Now i have another class where I create object of the class Network and invoke GetMyNetwork() to get network. When i do this it hits wcf again and gives me the string. I want to avoid that.I want it to cache the network string once and for all and whenever i hit this method i should get the data without hitting wcf again. how can i achieve this ?