Hellow,
I am dealing with a small edge case where I need to figure out if an object is in fact dynamic object. For now I came up with this:
public static bool IsDynamic(this object obj)
{
if (obj == null)
return false;
return obj is IDynamicMetaObjectProvider;
}
Is there a better way or other things that I should also be checking?
Thanks!