Click here to Skip to main content
15,896,480 members
Articles / Programming Languages / C# 4.0

Custom serialization for ExpandoObjects in ASP.NET WebAPI

Rate me:
Please Sign up or sign in to vote.
5.00/5 (9 votes)
5 Dec 2012CPOL2 min read 32.1K   292   14  
Using dynamic or ExpandoObject is a breeze to dynamic data WebAPIs, but when serializing to XML, it can cause a brain damage sometimes :)

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebAPIProject", "WebAPIProject\WebAPIProject.csproj", "{E9A902A7-915B-4196-82E6-F8201FA962B0}"
EndProject
Global
	GlobalSection(TeamFoundationVersionControl) = preSolution
		SccNumberOfProjects = 4
		SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
		SccTeamFoundationServer = http://10.0.0.31:8080/tfs/abacuspcr%204.x
		SccLocalPath0 = .
		SccProjectUniqueName1 = Abacus.Relay.Core\\Abacus.Relay.Core.csproj
		SccProjectName1 = Abacus.Relay.Core
		SccLocalPath1 = Abacus.Relay.Core
		SccProjectUniqueName2 = Abacus.Relay.Process\\Abacus.Relay.Process.csproj
		SccProjectName2 = Abacus.Relay.Process
		SccLocalPath2 = Abacus.Relay.Process
		SccProjectUniqueName3 = Abacus.Relay.Service\\Abacus.Relay.Service.csproj
		SccProjectName3 = Abacus.Relay.Service
		SccLocalPath3 = Abacus.Relay.Service
	EndGlobalSection
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{E9A902A7-915B-4196-82E6-F8201FA962B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{E9A902A7-915B-4196-82E6-F8201FA962B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{E9A902A7-915B-4196-82E6-F8201FA962B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{E9A902A7-915B-4196-82E6-F8201FA962B0}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
is a poor software developer and thinker. Presently working on a theory of "complementary perception". It's a work in progress.

Comments and Discussions