C#C
C#4y ago
.bobgoblin

❔ Issue With Code

I have this code
        public T Deserialize<T>(IRestResponse response)
        {
            try
            {
                return JsonConvert.DeserializeObject<T>(response.Content, _settings);
            }
            catch
            {
            }

            return default(T);

        }
and the IRestResponse should resolve to interface IRestResponse but I'm getting an error even tho I have added using RestSharp; What do I need to change/alter so this code works correctly?
Was this page helpful?