Persisted Properties

Back in classic ASP.NET I’d persist data extract from a web service in base class property as follows: private string m_stringData; public string _stringData { get { if (m_stringData==null) { //fetch data from my web service m_stringData = ws.FetchData() } return m_stringData; } } This way I could always simple use _stringData and know that... Continue Reading →

C# Reading content from text files

This is something I do frequently, and I always forget the streaming syntax, so here it is. There are couple of ways to do this. Firstly, from an application: From the properties panel, set the Build Action as Resource and the Copy to Output Directory as Copy Always From code this can then be accessed... Continue Reading →

A Website.

Up ↑