Archives
Blog Roll
Feed your Head
Random Thought Patterns
a Xavier Musy weblog production


Monday, February 23, 2004
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
I did it my way

Scoble writes about those pesky designers. If you actually subscribe to more than one feed, you'll soon come to the realization that a news aggregator is indispensable to be productive. Once that happens, you'll likely be consuming rss/atom, and not HTML, which makes the design of a blog much less important than the content -- as it should be. Like Scoble, I use NewsGator for a news aggregator. The nice thing about NewsGator is that it lets you edit the style sheet which formats the feeds which end up in your news folders. So not only is the original style gone, but you can inject your own, and damn those overrated designs :) An interesting statistic would be what percentage of Scoble's readers use a web client vs. a news aggregator.

Wednesday, February 18, 2004
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 
Reflection and out parameters

So I was asked today how to invoke a method with an out param using reflection. I didn't know off hand. As it turns out, it's a bit more obscure then I expected. Apparently, the type name passed to GetType needs to be appended with a '&' to denote a reference to that type. Here's an example of invoking a method with a string out param via reflection:

Type type = typeof(MyType);
object o = Activator.CreateInstance(type);
MethodInfo mi = type.GetMethod("MyMethod", new Type[]{Type.GetType("System.String&")});
object[] parms = new object[1];
mi.Invoke(o, parms);
string outValue = (string)parms[0];




Powered by Blogger

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of Seed Industries. It is solely my opinion.
Copyright © 2003, Xavier Musy. All right are reserved.