Class library for performing advanced operations with types, dynamic objects, expressions, and reflection.
$ dotnet add package Universal.Common.ReflectionAdditional reflection-based functionality.
Used for the common scenario where fields and properties need to be dealt with in a similar manner.
foreach (FieldOrPropertyInfo fieldOrProperty in typeof(Class).GetFieldsAndProperties())
{
Console.WriteLine(fieldOrProperty.GetValue(instance));
}