Re: Generic filehandler method

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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?

.



Relevant Pages

  • Re: Generic filehandler method
    ... 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? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Generic filehandler method
    ... programmer that is coding the caller operation, and I would imagine there is ... But how would your static method know which method to call on the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Generic filehandler method
    ... the programmer that is coding the caller operation, ... imagine there is some way to open a file as a type...is that not the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: grown out of coding
    ... The analyst got to talk to the users and managers and have enough meetings to understand what was needed/required. ... They would then create the specs that the programmer would use to create the notes the coder would use to write the program. ... It's a wonderful feeling, molding little minds. ... And coding technique: you have to see it all and know it all to be able to grade it all. ...
    (comp.databases.pick)
  • Re: free source for bbs
    ... you will be so much smarter if you realize how little about ... >understanding, you lack the basics of simple coding like scoping, api ... philological nature about what is to be understood for "programmer", ...
    (comp.lang.perl.misc)