Click here to Skip to main content
15,888,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: app config Pin
Cyrus-IRA10-Jun-09 15:56
Cyrus-IRA10-Jun-09 15:56 
QuestionFlickering. Pin
Baeltazor10-Jun-09 12:57
Baeltazor10-Jun-09 12:57 
QuestionActive directory Question Pin
caiena10-Jun-09 11:12
caiena10-Jun-09 11:12 
AnswerRe: Active directory Question Pin
Leonscape10-Jun-09 11:29
Leonscape10-Jun-09 11:29 
AnswerRe: Active directory Question Pin
saurabh sahay10-Jun-09 12:12
saurabh sahay10-Jun-09 12:12 
GeneralRe: Active directory Question Pin
Dave Kreskowiak10-Jun-09 17:14
mveDave Kreskowiak10-Jun-09 17:14 
QuestionType declaration ? Pin
daveyerwin10-Jun-09 9:55
daveyerwin10-Jun-09 9:55 
AnswerRe: Type declaration ? Pin
0x3c010-Jun-09 10:12
0x3c010-Jun-09 10:12 
If b implements the interface IBlog, then you can cast b to an IBlog and provided Text is part of the interface declaration and is implemented in b's class, you can get the text. Something like:
interface IBlog
{
    public string text { get; }
}

public class Blog : IBlog
{
    public string text
    {
        get { return "name"; }
    }
}

public int testThisExample()
{
    object b = new Blog();

    if(b is IBlog)
        Console.WriteLine("blog = {0}", (b as IBlog).text);
    return 0;
}


Between the idea
And the reality
Between the motion
And the act
Falls the Shadow

AnswerRe: Type declaration ? Pin
Leonscape10-Jun-09 11:20
Leonscape10-Jun-09 11:20 
AnswerRe: Type declaration ? Pin
Luc Pattyn10-Jun-09 11:20
sitebuilderLuc Pattyn10-Jun-09 11:20 
QuestionC# need some direction Pin
marksmit10-Jun-09 8:48
marksmit10-Jun-09 8:48 
AnswerRe: C# need some direction Pin
Henry Minute10-Jun-09 8:58
Henry Minute10-Jun-09 8:58 
AnswerRe: C# need some direction Pin
Christian Graus10-Jun-09 9:04
protectorChristian Graus10-Jun-09 9:04 
AnswerRe: C# need some direction Pin
sgenie6810-Jun-09 17:16
sgenie6810-Jun-09 17:16 
GeneralThanks guys! Pin
marksmit11-Jun-09 4:53
marksmit11-Jun-09 4:53 
QuestionThoroughly confused now :) Pin
marksmit11-Jun-09 5:49
marksmit11-Jun-09 5:49 
Question[Message Deleted] Pin
hkjghkj110-Jun-09 8:28
hkjghkj110-Jun-09 8:28 
AnswerRe: parallel sounds Pin
Christian Graus10-Jun-09 8:44
protectorChristian Graus10-Jun-09 8:44 
Questionif statement troubles Pin
partialdata10-Jun-09 6:54
partialdata10-Jun-09 6:54 
GeneralRe: if statement troubles Pin
harold aptroot10-Jun-09 7:14
harold aptroot10-Jun-09 7:14 
GeneralRe: if statement troubles Pin
partialdata10-Jun-09 8:04
partialdata10-Jun-09 8:04 
AnswerRe: if statement troubles Pin
Luc Pattyn10-Jun-09 7:25
sitebuilderLuc Pattyn10-Jun-09 7:25 
GeneralRe: if statement troubles Pin
partialdata10-Jun-09 8:17
partialdata10-Jun-09 8:17 
GeneralRe: if statement troubles Pin
Luc Pattyn10-Jun-09 8:28
sitebuilderLuc Pattyn10-Jun-09 8:28 
GeneralRe: if statement troubles Pin
partialdata10-Jun-09 8:48
partialdata10-Jun-09 8:48 

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.