Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
REST service access using C# 4.0 dynamic programming
branch: master

This branch is 116 commits ahead of nikhilk:master

Merge pull request #3 from dstockhammer/master

package Huddle.DynamicRest version 1.0.0
latest commit d89e259ac5
Daniel Stockhammer dstockhammer authored
Failed to load latest commit information.
DynamicRest.UnitTests Removed lib and use nuget instead
DynamicRest Added nuspec and adjusted AssemblyInfo for version 1.0.0
Samples Merge branch 'master' of
.gitattributes Try and correct crlf issues in project with .gitAttributes.
.gitignore Removed lib and use nuget instead
DynamicRest.sln Removed lib and use nuget instead
License.txt Changed the mechanism for retrieving response headers, now they are a…

Dynamic REST

This is a small project demonstrating REST service access, working against JSON data and XML data using late-bound dynamic code using the new dynamic programming features being added to c# 4.0.

JSON data

REST client

Basic usage

  • To get an instance of RestClient use the RestClientBuilder fluent interface:

    var client = new RestClientBuilder()


  • Issue a GET

    var response = client.Get();
  • Navigate the response

    Given this response:

            { src:'http://some.uri/image1.png' },
            { src:'http://some.uri/image2.png' }

    You can navigate using the following dynamic syntax:

      var image2src = response.Result.article.images[1].src;
Something went wrong with that request. Please try again.