T
Tony W
Hi,
I'm trying to write a small app where I need to keep referencing a
stored file location that is stored in an xml file.
My research suggests that I should use a Singleton to store the file
path and use the Singleton each time I need the path string.
I am new to c# so have looked at numerous examples of creating a
Singleton. Although there are dozens of webpages with examples, most
are just copies of about 4 different webpages.
None of these clearly explain how to implement the storage and
retrieval of data values using a Singleton, only how to get an
instance and then see if you can get a second instance.
I have tried using trial and error editing the examples I have found
but this has not worked.
Could someone please point me in the direction of a good example or
post one in the ng?
If I haven't made myself clear or you need further info please ask.
Many thanks,
Tony W
I'm trying to write a small app where I need to keep referencing a
stored file location that is stored in an xml file.
My research suggests that I should use a Singleton to store the file
path and use the Singleton each time I need the path string.
I am new to c# so have looked at numerous examples of creating a
Singleton. Although there are dozens of webpages with examples, most
are just copies of about 4 different webpages.
None of these clearly explain how to implement the storage and
retrieval of data values using a Singleton, only how to get an
instance and then see if you can get a second instance.
I have tried using trial and error editing the examples I have found
but this has not worked.
Could someone please point me in the direction of a good example or
post one in the ng?
If I haven't made myself clear or you need further info please ask.
Many thanks,
Tony W