Giter Site home page Giter Site logo

dynamictype.net's Introduction

DynamicType.NET

A .NET toolkit to make it easier to handle dynamic data.

Copyright (c) 2012 iCept Media. All rights reserved.

- DynamicConversion

Convert a primitype datatype to another primitype datatype, but prevent impossible 
conversions. (Strings that doesn't contain only numeric values can't be converted 
to a int for example)

- DynamicValue

A data type can hold 1 primitype value and implements all basic operators to 
manipulate the value. For example: 10 + "10" = 20, "10"++ = 11 or "10" + 10 = 
"1010". Impossible operations like 10 + "a" are prevented and result in a 
exception.

- DynamicExpandoContainer

A ExpandoObject replacement that instead of a Exception returns a DynamicValue 
object initialised to null when a not existing property is requested.

Notes

- Decimal, double and float parsing depends on the current culture. Using the 
wrong culture can result in unexpected results. (If , is the decimal separator
in the current culture, parsing 10.0 will result in 100,0!)

- The type of the value you operating on remains the same. This can result in a
loss of precision: 4 + 4.1 = 8.

- This library was developed as part of a PoC. Documentation and Unit Tests are
missing, but since a large part of the code is generated and the API is very simple,
there isn't IMO a very high need for it. If there is actually demand for it, we can
alway decide again about it. Or submit a pull request @ GitHub ;).

Requirements

.NET 4.0+

The latest stable Mono should also work but is not tested. Earlier versions of 
.NET are not possible since they lack the dynamic support.

License

DynamicType.NET is dual licensed BSD / LGPL.
 
See License.txt for more information.

dynamictype.net's People

Contributors

martijnb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.