faithlife / faithlifereflection Goto Github PK
View Code? Open in Web Editor NEWHelpers for reflecting over .NET types.
Home Page: https://faithlife.github.io/FaithlifeReflection/
License: MIT License
Helpers for reflecting over .NET types.
Home Page: https://faithlife.github.io/FaithlifeReflection/
License: MIT License
We could add CreateNew(IEnumerable<(string, object?)> properties)
to IDtoInfo
. It would create an instance of the DTO, assigning the specified values to properties of the specified names.
This would be useful for mutable DTOs, but critical for immutable DTOs, which it could support by calling a constructor whose parameter names match read-only property names.
The introduction of immutable records with positional parameters in C# 9 makes this more pressing.
We should respect any default parameter values on the constructor.
We should support mixed mutable/immutable properties.
All property and parameter name matching should be case-insensitive.
If there are multiple possible paths, we should probably prefer constructor parameters to settable properties, for the sake of efficiency.
Adding IDtoInfo.Constructors
could be useful, both for this behavior and for clients. Maybe detect static "constructor methods" as well?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.