Robert Giesecke

Munich, Germany

Age: 32

Apr
22
awarded Nice Answer
Dec
13
comment Compare two collections optimization
Well, he did ask for an optimization. Code that performs O(n²) without good reason is kinda sloppy in my book.
Dec
13
answered Compare two collections optimization
Dec
13
comment Compare two collections optimization
you can always create a dictionary from a list. var byId = collectionA.ToDictionary(k => k.Id) - I'll post some sample code...
Dec
13
comment Compare two collections optimization
This isn't a very good idea. You should create dictionaries of both collections, indexed by id, to have a linear seek time.
Nov
7
awarded Yearling
Oct
10
awarded c#
Feb
27
awarded Supporter
Feb
22
answered Unmanaged Exports with Arrays
Nov
30
answered How to declare array types for unmanaged export
Jun
8
awarded Constituent
Jun
8
awarded Caucus
May
7
comment Why UnManaged Export example is doesnt work in prism XE
Fun fact: I first released this on the former oxygene newsgroup for Oxygene, not C#, (because D.Net had something similar) However, I only test and target it for C# now. Because Oxygene can do that just fine on its own since shortly afterward. You should file a bug at codecentral to get this sorted out, IMO.
Mar
16
comment LINQ to Nhibernate performance
As I said, this is an extension method. Check this SO thread stackoverflow.com/questions/4666665/…
Mar
16
answered LINQ to Nhibernate performance
Mar
8
answered Is it possible to refactor this nHibernate Linq query?
Mar
2
comment Catching exceptions thrown in the constructor of the target object of a Using block
That is a very good point. I just found a class of mine that does it similar to how you described it. (This one HAS to dispose of anything as quickly as possible, so I had to accept the code smell over the real smell of doing it sloppy)
Dec
19
answered How to generate a unique string from a string collection?
Dec
14
answered How to display a text (Html format) in a website (Asp.net C#)
Dec
14
comment calling managed c# functions from unmanaged c++
Should work just fine (I use it myyself in 2010), you may want to change the target framework of the newly created project to 4.0, though. VS 2010 defaults to .Net 2.0 when no target framework setting is present.
1 2 3 4 5