1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Is there a TryGetValue?

Is there a TryGetValue?

1 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    05 Sep 2012
    Link to this post
    I want to call GetValue("Property"); on a dynamic item and have it just return NULL if that property doesn't exist instead of the current Object Ref error...I also don't want to incur the expensive wrapping in a try\catch.

    Does such a thing exist to see if a type has a property with X name?
1 posts, 0 answered