Skip to content

Instantly share code, notes, and snippets.

@takeshik
Created February 24, 2010 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takeshik/313543 to your computer and use it in GitHub Desktop.
Save takeshik/313543 to your computer and use it in GitHub Desktop.
return Encoding.UTF8.GetString(new MemoryStream()
.Let(_ => _.Dispose(
s => new DataContractJsonSerializer(typeof(StorageObject))
.WriteObject(s, source.ToList())
))
.ToArray()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment