Re: [ADVANCED-DOTNET] interview test.....

2007-10-04 Thread Ernst Kuschke
Test the candidate at the abstraction-level that his work will be done on. Actually this thread nicely points out what limited knowledge some interviewers have of the .net Framework! Ask yourelf: when you interview someone for a C job, would you ask him questions related to assembly instructions,

[ADVANCED-DOTNET] .NET Base Class Library Source to be Release

2007-10-04 Thread Peter Vertes
Thank You ! Thank You ! Thank You ! :) http://iheartdotnet.blogspot.com/2007/10/net-framework-library-source-code.html === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] SqlParameter Type Mapping

2007-10-04 Thread Frans Bouma
> Given a custom type, how can you define what value gets passed when it is > used as a database parameter? Consider: > > public class MyClass { > public string Value; > public MyClass(string value) { this.Value = value; } > } > > using (SqlCommand cmd = new SqlCommand()) { > // I want myClas

Re: [ADVANCED-DOTNET] Using thread-unsafe COM objects in a multi-threaded .NET application

2007-10-04 Thread Patrick Steele
Is the COM DLL marked as free-threaded? Or Single-thread apartment (STA)? Make sure you use SetApartmentState (2.0) or the ApartmentState property (1.1) on your threads to match the threading model of the COM component. --- Patrick Steele http://weblogs.asp.net/psteele -Original Message---

Re: [ADVANCED-DOTNET] interview test.....

2007-10-04 Thread Sébastien Lorion
Just catching up on this topic... I would also ask some questions about functional style of programming. My (limited) experience tells me that people that grasps this are often (but not always) much better programmers/architects. This becomes even more important in light of LINQ et al. Also, some

[ADVANCED-DOTNET] SqlParameter Type Mapping

2007-10-04 Thread Mark Brackett
Given a custom type, how can you define what value gets passed when it is used as a database parameter? Consider: public class MyClass { public string Value; public MyClass(string value) { this.Value = value; } } using (SqlCommand cmd = new SqlCommand()) { // I want myClass to be a string w

[ADVANCED-DOTNET] Using thread-unsafe COM objects in a multi-threaded .NET application

2007-10-04 Thread Janis Braslins
I have a third-party COM dll that appears to be not thread safe. The dll itself is used to process a binary file. I have two .NET threads running in parallel. Each creates it's own isntance of the same object from that COM dll used to process the files. Threads never try to process the same binary

Re: [ADVANCED-DOTNET] interview test.....

2007-10-04 Thread Mark Nicholls
On Fri, 21 Sep 2007 18:29:25 +0200, Frans Bouma <[EMAIL PROTECTED]> wrote: >> On Fri, 21 Sep 2007 16:31:04 +0200, Frans Bouma <[EMAIL PROTECTED]> wrote: >> >> On Fri, 21 Sep 2007 15:28:58 +0200, Frans Bouma <[EMAIL PROTECTED]> >> wrote: >> >Often no experience and likely not really that mu