Click here to Skip to main content
13,833,047 members
   

C#

 
GeneralRe: Regular Expression pattern Pin
Pete O'Hanlon17-Dec-10 3:31
protectorPete O'Hanlon17-Dec-10 3:31 
QuestionVSTO Word add-in 2007 Range.Find from background thread or worker Pin
Dino Mulahusic16-Dec-10 23:44
professionalDino Mulahusic16-Dec-10 23:44 
QuestionImage Upload and Resize Pin
Sudipta K Paik16-Dec-10 22:59
groupSudipta K Paik16-Dec-10 22:59 
AnswerRe: Image Upload and Resize Pin
OriginalGriff16-Dec-10 23:16
protectorOriginalGriff16-Dec-10 23:16 
JokeRe: Image Upload and Resize [modified] Pin
_Erik_17-Dec-10 4:21
member_Erik_17-Dec-10 4:21 
QuestionEnumeration as Indexer: Is C# not the strongly-typed? Pin
Paul Selormey16-Dec-10 21:07
memberPaul Selormey16-Dec-10 21:07 
AnswerRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
harold aptroot16-Dec-10 22:58
memberharold aptroot16-Dec-10 22:58 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Paul Selormey17-Dec-10 0:40
memberPaul Selormey17-Dec-10 0:40 
harold aptroot wrote:
0 is always legal when an enum is expected


I think that explains the issue, since the output of the ff. are the same: ItemC.
(NOTE: reversed the content)
static void Main(string[] args)
{
    AFormatCollection collFormats = new AFormatCollection();
    collFormats.Add(new AFormat(AFormatType.ItemD));
    collFormats.Add(new AFormat(AFormatType.ItemC));
    collFormats.Add(new AFormat(AFormatType.ItemA));
    collFormats.Add(new AFormat(AFormatType.ItemB));

    testFormat = collFormats[1];
    if (testFormat != null)
    {
        Console.WriteLine(testFormat.FormatType.ToString());
    }

    testFormat = collFormats[AFormatType.ItemC];
    if (testFormat != null)
    {
        Console.WriteLine(testFormat.FormatType.ToString());
    }
}


Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.

AnswerRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Eddy Vluggen16-Dec-10 23:06
mveEddy Vluggen16-Dec-10 23:06 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? [modified] Pin
Paul Selormey17-Dec-10 0:26
memberPaul Selormey17-Dec-10 0:26 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Eddy Vluggen17-Dec-10 1:38
mveEddy Vluggen17-Dec-10 1:38 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Paul Selormey17-Dec-10 1:48
memberPaul Selormey17-Dec-10 1:48 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
harold aptroot17-Dec-10 2:13
memberharold aptroot17-Dec-10 2:13 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Paul Selormey17-Dec-10 2:19
memberPaul Selormey17-Dec-10 2:19 
GeneralRe: Enumeration as Indexer: Is C# not the strongly-typed? Pin
Eddy Vluggen17-Dec-10 2:49
mveEddy Vluggen17-Dec-10 2:49 
QuestionWhat's the purpose to use Property with set and get to change a field? Pin
nstk16-Dec-10 20:29
membernstk16-Dec-10 20:29 
AnswerRe: What's the purpose to use Property with set and get to change a field? Pin
JF201516-Dec-10 21:02
memberJF201516-Dec-10 21:02 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
nstk17-Dec-10 0:01
membernstk17-Dec-10 0:01 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
Jeff Connelly17-Dec-10 7:09
memberJeff Connelly17-Dec-10 7:09 
AnswerRe: What's the purpose to use Property with set and get to change a field? Pin
Hiren solanki17-Dec-10 0:52
memberHiren solanki17-Dec-10 0:52 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
Jeff Connelly17-Dec-10 7:15
memberJeff Connelly17-Dec-10 7:15 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
PIEBALDconsult17-Dec-10 8:50
protectorPIEBALDconsult17-Dec-10 8:50 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
kevinnicol17-Dec-10 8:53
memberkevinnicol17-Dec-10 8:53 
GeneralRe: What's the purpose to use Property with set and get to change a field? [modified] Pin
Jeff Connelly17-Dec-10 9:21
memberJeff Connelly17-Dec-10 9:21 
GeneralRe: What's the purpose to use Property with set and get to change a field? Pin
kevinnicol17-Dec-10 9:23
memberkevinnicol17-Dec-10 9:23 

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.


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190114.1 | Last Updated 19 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid