Accessing weakly typed facebook sdk result object properties in .NET 3.5 using the API?

Posted by John K on Stack Overflow See other posts from Stack Overflow or by John K
Published on 2011-01-12T23:48:42Z Indexed on 2011/01/12 23:54 UTC
Read the original article Hit count: 163

Consider the following in .NET 3.5 (using the Bin\Net35\Facebook*.dll assemblies):

var app = new FacebookApp();
var result = app.Get("me");
// want to access result properties with no dynamic

... in the absence of the C# 4.0 dynamic keyword this provides only a generic object. How best should I access the properties of this result value?

Are there helper or utility methods or stronger types in the facebook C# sdk, or should I use standard .NET reflection techniques?

© Stack Overflow or respective owner

Related posts about dynamic

Related posts about c#-3.0