Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing to a control created at runtime Pin
aleroot8-Apr-10 9:42
aleroot8-Apr-10 9:42 
QuestionPassing database login info to Crystal report - problem going to production Pin
jamesc698-Apr-10 4:54
jamesc698-Apr-10 4:54 
Questionstatic property with polymorphism Pin
lukeer8-Apr-10 4:12
lukeer8-Apr-10 4:12 
AnswerRe: static property with polymorphism Pin
PIEBALDconsult8-Apr-10 4:28
mvePIEBALDconsult8-Apr-10 4:28 
GeneralRe: static property with polymorphism Pin
lukeer8-Apr-10 4:34
lukeer8-Apr-10 4:34 
AnswerRe: static property with polymorphism Pin
Jimmanuel8-Apr-10 4:38
Jimmanuel8-Apr-10 4:38 
AnswerRe: static property with polymorphism Pin
Luc Pattyn8-Apr-10 4:46
sitebuilderLuc Pattyn8-Apr-10 4:46 
AnswerRe: static property with polymorphism Pin
PIEBALDconsult8-Apr-10 5:06
mvePIEBALDconsult8-Apr-10 5:06 
Here's a way to do it with generics -- I used strings to save time working it up.
(I think it's a bit kludgey.)

public class Base<T>
{
    protected static string icon ;

    public string
    Icon
    {
        get
        {
            return ( icon ) ;
        }
    }
}

public class Child1 : Base<Child1>
{
    static Child1
    (
    )
    {
        icon = "Child1" ;

        return ;
    }
}

public class Child2 : Base<Child2>
{
    static Child2
    (
    )
    {
        icon = "Child2" ;

        return ;
    }
}

GeneralRe: static property with polymorphism Pin
harold aptroot8-Apr-10 6:10
harold aptroot8-Apr-10 6:10 
GeneralRe: static property with polymorphism Pin
Luc Pattyn8-Apr-10 6:59
sitebuilderLuc Pattyn8-Apr-10 6:59 
GeneralRe: static property with polymorphism Pin
PIEBALDconsult8-Apr-10 8:13
mvePIEBALDconsult8-Apr-10 8:13 
AnswerSolved: static property with polymorphism Pin
lukeer9-Apr-10 2:59
lukeer9-Apr-10 2:59 
QuestionCOM port send/receive Pin
mprice2148-Apr-10 4:02
mprice2148-Apr-10 4:02 
AnswerRe: COM port send/receive Pin
PIEBALDconsult8-Apr-10 4:16
mvePIEBALDconsult8-Apr-10 4:16 
GeneralRe: COM port send/receive Pin
mprice2148-Apr-10 4:23
mprice2148-Apr-10 4:23 
GeneralRe: COM port send/receive Pin
PIEBALDconsult8-Apr-10 5:25
mvePIEBALDconsult8-Apr-10 5:25 
GeneralRe: COM port send/receive Pin
mprice2148-Apr-10 8:42
mprice2148-Apr-10 8:42 
GeneralRe: COM port send/receive Pin
PIEBALDconsult8-Apr-10 11:25
mvePIEBALDconsult8-Apr-10 11:25 
GeneralRe: COM port send/receive Pin
mprice2148-Apr-10 14:20
mprice2148-Apr-10 14:20 
GeneralRe: COM port send/receive Pin
PIEBALDconsult8-Apr-10 17:13
mvePIEBALDconsult8-Apr-10 17:13 
GeneralRe: COM port send/receive Pin
mprice2149-Apr-10 2:25
mprice2149-Apr-10 2:25 
GeneralRe: COM port send/receive Pin
PIEBALDconsult9-Apr-10 3:22
mvePIEBALDconsult9-Apr-10 3:22 
GeneralRe: COM port send/receive Pin
mprice2149-Apr-10 3:46
mprice2149-Apr-10 3:46 
GeneralRe: COM port send/receive Pin
PIEBALDconsult9-Apr-10 4:09
mvePIEBALDconsult9-Apr-10 4:09 
AnswerRe: COM port send/receive Pin
Rajesh Anuhya9-Apr-10 2:36
professionalRajesh Anuhya9-Apr-10 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.