how to get length of okobjectresult csharp

Code Example - how to get length of okobjectresult csharp

                
                        var count = (int)okResult.Value.GetType().GetProperty("count").GetValue(okResult.Value);