Skip to content
forked from 6bee/aqua-core

Transform any object-graph into a dynamic, composed dictionaries like structure, holding serializable values and type information

License

Notifications You must be signed in to change notification settings

azabluda/aqua-core

This branch is 556 commits behind 6bee/aqua-core:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 24, 2017
a8d7a92 · May 24, 2017
May 24, 2017
May 24, 2017
Mar 22, 2016
Mar 30, 2017
Feb 22, 2017
Mar 11, 2016
Feb 18, 2017
Mar 15, 2017
Jul 24, 2015
Feb 22, 2017
Apr 20, 2016
May 24, 2017

Repository files navigation

aqua-core

branch package AppVeyor Travis CI
master NuGet Badge MyGet Pre Release Build status Travis build Status

Transform any object-graph into a dynamic, composed dictionaries like structure, holding serializable values and type information.

Aqua-core provides a bunch of serializable classes:

  • DynamicObject
  • TypeInfo
  • FieldInfo
  • PropertyInfo
  • MethodInfo
  • ConstructorInfo

Any object graph may be translated into a DynamicObject structure and back to it's original type using DynamicObjectMapper.

Sample

Mapping an object graph into a DynamicObject and then back to it's original type

Blog blog = new Blog
{
    Title = ".NET Blog",
    Description = "A first-hand look from the .NET engineering teams",
    Posts = new[]
    {
        new Post
        {
            Title = "Announcing .NET Core 1.0",
            Date = new DateTime(2016, 6, 27),
            Author = "rlander"
            Text = "We are excited to announce the release of .NET Core 1.0, ASP.NET Core 1.0 and Entity Framework Core 1.0, available on Windows, OS X and Linux! .NET Core is a cross-platform, open source, and modular .NET platform [...]"
        },
        new Post
        {
            Title = "Happy 15th Birthday .NET!",
            Date = new DateTime(2017, 2, 13),
            Author = "bmassi",
            Text = "Today marks the 15th anniversary since .NET debuted to the world [...]"
        }
    }
}

DynamicObject dynamicObject = new DynamicObjectMapper().MapObject(blog);

Blog restoredBlog = new DynamicObjectMapper().Map(dynamicObject) as Blog;

About

Transform any object-graph into a dynamic, composed dictionaries like structure, holding serializable values and type information

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Batchfile 0.2%