This package provider a fluent syntax to simple data conversions. Extension functions package for simple data convert.
This library is part of Maestria Project.
Maestria is a project to provide maximum productivity and elegance to your code.
First, install NuGet. Then, install Maestria.Extensions.Reflection from the package manager console:
PM> Install-Package Maestria.Extensions.Reflectionor install from the dotnet cli command line:
> dotnet add package Maestria.Extensions.ReflectionFirst, import "Maestria.Extensions.Reflection" reference:
using Maestria.Extensions.Reflection;Then in your application code, use fluent syntax:
// ReflectionExtensions
<type>.IsInheritedOrImplements(<parent-type>)
ReflectionExtensions.GetAssemblyByName(<name>)
ReflectionExtensions.Create<T>(<arguments[]>)
ReflectionExtensions.HasConstructor<T>(<arguments-types[]>)
ReflectionExtensions.PropertyExist(<object-instance>, <property-name>)
ReflectionExtensions.SetPropertyValue(<object-instance>, <property-name>, <value>)
<object> ReflectionExtensions.GetPropertyValue(<object-instance>, <property-name>)
<T> ReflectionExtensions.GetPropertyValue<T>(<object-instance>, <property-name>)
<object> ReflectionExtensions.GetTaskResult(<task-instance>)
<object> ReflectionExtensions.InvokeMethod(<object-instance>, <method-name>, <parameters>)If my contributions helped you, please help me buy a coffee :D


