Exposing a Path with Filename as a Property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was just going to use a string property to hold the path to images of my
control, but then was thinking that maybe .NET had a better contrainer for
Paths...
The path could be any valid path including just a file name, a relative
path, or an absolute path.

Thanks for your advice

Earl
 
Earl,

There is a Path class, but it contains utility functions (all static)
that are used to help resolve path names. I would recommend using a string
(since there isn't something in the framework that handles this), and then
resolving them using the static functions on the Path class (in the
System.IO namespace).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top