Commit Graph
19 Commits
Author SHA1 Message Date
James Newton-King 473a7721bd -Refactor 2017-10-23 10:33:35 +13:00
Florian Greinacher b8e60c773b Change ifdefs to be by feature, not by platform (#1146)
* First pass

* Second pass

* Third pass

* Temporarily change build script to build only portable

* Add portable features for release build

* Add feature constants to build script

* Add more feature constants to build script

* Fix build issues

* Fix build issues

* Get rid of constants in build.ps1

* HAVE_NUMERICS -> HAVE_BIG_INTEGER

* Remove HAVE_NULLABLE

* Remove HAVE_NUMERICS from csprojs

* Add missing ifdef

* Add feature defines to pj

* Re-enable netstd builds

* Fix defines in pj

* Trying to get better build outputs

* Trying to get the build error

* Use newer cli

* Address review feedback; make netstd build work

* Introduce HAVE_DB_NULL_TYPE

* Adapt to upstream changes; address remaining review feedback

* Adapt to upstream changes; address remaining review feedback

* Rename some constants for constistency

* Address review feedback

* -Fixed build with signed assembly

* Fix merge erorr

* Address review feedback

* Introduce HAVE_NON_SERIALIZED_ATTRIBUTE

* HAVE_IGNORE_DATA_MEMBER_ATTRIBUTE
2017-01-12 11:07:02 +13:00
Jon Hanna ff3bfaf51b Use singleton for zero-element arrays.
Create an easily-inlinable method that accesses the array used
by Enumerable.Empty (and hence not just shared within this project
but likely with the client assembly or other libraries it uses)
and use it anywhere a zero-element array is used, reducing allocations.
2017-01-09 01:50:03 +00:00
Jon Hanna a95665b481 Replace is-and-cast with as-and-nullcheck
Gives slightly better performance, so applying across the board
adds up.
2017-01-05 01:52:04 +00:00
Alexey Skalozub 7b0331725c Speed up expression delegates when widening types is not needed 2016-09-11 03:35:36 +03:00
Alexey Skalozub deefe2e006 Removed Convert.ChangeType calls because of poor performance (DynamicReflectionDelegateFactory now uses IConvertible.ToTypeName, while ExpressionReflectionDelegateFactory uses Convert.ToTypeName). Method binder moved to a separate file and documented, + code style fixes. 2016-09-10 20:19:22 +03:00
Alexey Skalozub 95a4979ba4 Advanced constructor parameter binding on .NET Core & portable 2016-09-01 04:31:43 +03:00
James Newton-King ce2a08dba2 -Formatting 2015-12-27 14:31:36 +13:00
James Newton-King eb0cbd6a75 -Formatting
-Build
2015-12-04 23:54:38 +13:00
James Newton-King ad68ea8780 -Added JsonConstructorAttribute support for lists and dictionaries 2015-10-03 14:10:39 +13:00
James Newton-King 4a375721ac -Added support for constructors with out and ref parameters 2014-08-31 15:33:19 +12:00
James Newton-King 57ccaf00bf -Improved Portable40 assembly performance by using compiled expression reflection
-Fixed converting string JValues to enums with JToken.ToObject
2014-08-24 23:33:08 +12:00
James Newton-King 1a6f7cdada -More object creation refactoring 2014-05-08 11:21:19 +12:00
James Newton-King cf939ffc29 -More object creation refactoring 2014-05-07 15:24:42 +12:00
James Newton-King bcd6982419 -Code reformat 2013-10-20 15:08:39 +13:00
James Newton-King 3536c76873 -Added support for serializing extension data
-Added support for reference loop handling and type name handling to extension data
-Bug fixes
2013-10-06 12:32:56 +13:00
James Newton-King 64da81d386 -Added JsonDataExtensionAttribute 2013-04-30 00:13:20 +12:00
James Newton-King 2004377f3e -Fixed WinRT build 2013-04-25 13:35:26 +12:00
James Newton-King c2a7341dbc -Added compiled expressions reflection option 2013-04-24 22:56:53 +12:00