Click here to Skip to main content
15,911,132 members
Home / Discussions / C#
   

C#

 
GeneralRe: Text extraction -- This one will make you dizzy Pin
AngryC18-Feb-07 4:00
AngryC18-Feb-07 4:00 
GeneralRe: Text extraction -- This one will make you dizzy Pin
AngryC18-Feb-07 14:13
AngryC18-Feb-07 14:13 
GeneralRe: Text extraction -- This one will make you dizzy Pin
Guffa19-Feb-07 5:01
Guffa19-Feb-07 5:01 
GeneralRe: Text extraction -- This one will make you dizzy Pin
AngryC19-Feb-07 12:44
AngryC19-Feb-07 12:44 
QuestionWhat is the best way to represent a set of references ? Pin
zark9217-Feb-07 9:31
zark9217-Feb-07 9:31 
AnswerRe: What is the best way to represent a set of references ? Pin
Thomas Stockwell17-Feb-07 11:36
professionalThomas Stockwell17-Feb-07 11:36 
AnswerRe: What is the best way to represent a set of references ? Pin
Luc Pattyn17-Feb-07 12:20
sitebuilderLuc Pattyn17-Feb-07 12:20 
AnswerRe: What is the best way to represent a set of references ? Pin
zark9218-Feb-07 21:15
zark9218-Feb-07 21:15 
I managed to put something together based on KeyedCollection. It's not perfect, but it get the job done:
<code>    // Unordered set
    public class Set<T> : KeyedCollection<T, T>
    {
        public Set()
            : base( EqualityComparer<T>.Default, -1 )
        {
        }

        public Set( IEqualityComparer<T> comparer )
            : base( comparer, -1 )
        {
        }

        public new void Add( T item )
        {
            if ( !this.Contains(item ) )    // throws a non-documented exception otherwise.
                base.Add( item );
        }

        public void AddRange( IEnumerable<T> enumerable )
        {
            foreach ( T item in enumerable )
                this.Add( item );
        }

        override protected T GetKeyForItem( T item )
        {
            return item;
        }
    }
</code>

QuestionListview with images? Pin
sharpiesharpie17-Feb-07 8:23
sharpiesharpie17-Feb-07 8:23 
AnswerRe: Listview with images? Pin
Pete O'Hanlon17-Feb-07 9:59
mvePete O'Hanlon17-Feb-07 9:59 
QuestionHow can i connect C# to a IBM db2 server? Pin
icesha17-Feb-07 7:14
icesha17-Feb-07 7:14 
Questionxml attributes and sql database Pin
spin vector17-Feb-07 6:11
spin vector17-Feb-07 6:11 
QuestionProblems with XML Pin
sharpiesharpie17-Feb-07 4:03
sharpiesharpie17-Feb-07 4:03 
AnswerRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 4:56
Stefan Troschuetz17-Feb-07 4:56 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 5:33
sharpiesharpie17-Feb-07 5:33 
GeneralRe: Problems with XML Pin
Heath Stewart17-Feb-07 5:41
protectorHeath Stewart17-Feb-07 5:41 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 5:54
Stefan Troschuetz17-Feb-07 5:54 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:16
sharpiesharpie17-Feb-07 6:16 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:25
Stefan Troschuetz17-Feb-07 6:25 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:35
sharpiesharpie17-Feb-07 6:35 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 6:46
Stefan Troschuetz17-Feb-07 6:46 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 6:49
sharpiesharpie17-Feb-07 6:49 
GeneralRe: Problems with XML Pin
Stefan Troschuetz17-Feb-07 7:04
Stefan Troschuetz17-Feb-07 7:04 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:43
sharpiesharpie17-Feb-07 7:43 
GeneralRe: Problems with XML Pin
sharpiesharpie17-Feb-07 7:57
sharpiesharpie17-Feb-07 7:57 

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.