Typed Collections

"Until the next version of the .NET Framework (with generics) is released, you might think that you're stuck with framework collections that are typed for elements of type object. Which opens obvious doorways where buglets can slip through.It doesn't have to be that way - here's some basic boilerplate code...

Assembly.GetExecutingAssembly()

BradA points out the use of Assembly.GetExecutingAssembly().Location to find out the path to the executable. One thing to watch out for is that Assembly.GetExecutingAssembly() can return null under some conditions. Off the top of my head, this very likely will happen if you're not running in the default appdomain, or...

IM

Following Brad's lead, if any of you want to get in touch with me over instant messaging, I'm usually available through MSN Messenger at tomasr@passport.com :)

Messaging or RPC replied

Justin makes some really good points (and question) on his comments on SOAP WebServices. I'd like to reply to some of them, and take the opportunity to ask a few more questions of my own. Justin asks whether my example is really messaging. Well, probably not; but that was something,...

Sam's published!

Congratulations are in order to my friend Sam, who just got his first article in print! Way to go, buddy! It's really exciting to see your name on a magazine cover (well, at least I know it was for me...). Again, congrats, Sam, and keep up the good work. You're...

Stupid Question #1 (keeps on going)

Ali Aghareza posted a reply to my earlier messages with a really insightful example that presents one reason for ASP.NET to change the element name the type is serialized as: when the method returns two different instances of the same type. However, all is not that rosy. If no element...

Stupid Question #1 continued

Christian responds to my earlier question on a comment: "As you are using a Document/literal ASMX based Web Service which aims at *messages* and not *RPCs* (you know this distinction and the ongoing discussions ...), the top element of the serialized instance is just a signal for what kind of...

WebServices Stupid Question #1

I've been playing these last few days with ASP.NET WebServices [1], and, naturally, I've been running into a few snags. Yesterday I ran into what seems to be an inconsistency in the way XML serialization works where WebServices are invoked. Consider this simple ASMX file: <%@ WebService Language="C#" class="WeirdBhv" %>...

Justin and NAnt

Justin says: "I'll be giving a talk at the April TRINUG meeting on using NANT (hey, Tomas, see, I LIKE it!) and NUnit for developing applications.". Sounds like a cool talk! I'm glad you do like NAnt (you're gonna nag me with this for like, all eternity, aren't you? ;))...

InfoPath Packaging

Clemens complains about the SKU strategy for MS Office, and the role InfoPath is going to play. Talking to a friend today, I realized that the whole way InfoPath is packaged is wrong. InfoPath should be two tools: One tool should be the forms and schema creation tool. This is...