Comprobar si existe una propiedad en un jobject

JObject jObj; var existePopiedad = iObj.Property("propiedad"); if (existePopiedad != null) { var mag = msgProperty.Value; } else { //No existe la propiedad }
Check if property exists in a JObject

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.