Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class design or rather redesign
Message
De
17/03/2005 11:33:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00996809
Message ID:
00996882
Vues:
10
I'm not sure I understood exactly. Maybe an analogy might be like this:
Reports:
I have a few reports that are directly done calling excel.

If excel is not installed user doesn't even see those reports are available. It's noted in documentation.

So probably my answer is class "smart" to expose it if XP or higher:)
Cetin

>Cetin,
>Correct, but I am not having problems assigning a value to the property. That will all be taken care of from a static method. The class will acctually mostly be used in conjunction with a collection object which is returned from that static method I mentioned.
>I quess the question is:
>Should I make the class "smart" and only expose the property if XP or higher or should I assume that the consumer of the class is smart enough to know that the property will only be valid if XP or higher (maybe go as far as throwing exceptions around if the user is trying use is on less than XP)?
>
>Einar
>
>>Einar,
>>Woudln't it be something like:
>>
>>{set {if (winXPorLater) _myField = value; }}
>>
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform