Namotion.Reflection.ObjectExtensions
Object extensions.
namespace Namotion.Reflection
{
public static class ObjectExtensions
{
public static bool DisableNullabilityValidation { get; set; }
public static bool HasProperty(this object obj, string propertyName);
public static T TryGetPropertyValue<T>(this object obj, string propertyName, T defaultValue = default(T));
public static bool HasValidNullability(this object obj, bool checkChildren = true);
public static void EnsureValidNullability(this object obj, bool checkChildren = true);
public static IEnumerable<string> ValidateNullability(this object obj, bool checkChildren = true);
}
}