Ejemplo n.º 1
0
        public static object Get(this IResourceLoader resourceLoader, string uri, Type type)
        {
            if (resourceLoader == null)
            {
                throw new ArgumentNullException("client");
            }

            return(resourceLoader.Get(uri, type, null));
        }
Ejemplo n.º 2
0
        public static T Get <T>(this IResourceLoader resourceLoader, string uri, RequestOptions requestOptions)
        {
            if (resourceLoader == null)
            {
                throw new ArgumentNullException("client");
            }

            return((T)resourceLoader.Get(uri, typeof(T), requestOptions));
        }