Re: Generic filehandler method
- From: "Ron" <rs_herhuth@xxxxxxxxx>
- Date: Thu, 15 May 2008 12:35:18 -0400
Something like this:
<psuedo code>
Image img = GetFileFromFileSystem<Image>("C:\\Images\\","Background.bmp");
- or -
String str= GetFileFromFileSystem<String>("C:\\Images\\","DisplayText.txt");
<mrshrinkray@xxxxxxxxxxxxxx> wrote in message news:b54d2e51-4574-4246-9675-82c9741bb917@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 15 May, 16:32, "Ron" <rs_herh...@xxxxxxxxx> wrote:The subtlety is that using this method the filetype is specified by the
programmer that is coding the caller operation, and I would imagine there is
some way to open a file as a type...is that not the case?
Thanks,
Ron
But how would your static method know which method to call on the
object to Load the file? And when you get T back, what common way
would you use a Bitmap or a string?
.
- Follow-Ups:
- Re: Generic filehandler method
- From: mrshrinkray@xxxxxxxxxxxxxx
- Re: Generic filehandler method
- From: Peter Duniho
- Re: Generic filehandler method
- References:
- Generic filehandler method
- From: Ron
- Re: Generic filehandler method
- From: Peter Duniho
- Re: Generic filehandler method
- From: mrshrinkray@xxxxxxxxxxxxxx
- Re: Generic filehandler method
- From: Ron
- Re: Generic filehandler method
- From: mrshrinkray@xxxxxxxxxxxxxx
- Generic filehandler method
- Prev by Date: Re: What's the @ operator do?
- Next by Date: Re: Generic filehandler method
- Previous by thread: Re: Generic filehandler method
- Next by thread: Re: Generic filehandler method
- Index(es):
Relevant Pages
|