namespace EnvelopeGenerator.Domain.Interfaces { public interface IDocReceiverElement { int Page { get; set; } double X { get; set; } double Y { get; set; } string #if nullable ? # endif FullName { get; set; } string #if nullable ? #endif Place { get; set; } byte[] #if nullable ? #endif Ink { get; set; } } public static class DocReceiverElementExtensions { /// /// /// /// /// public static bool IsSigned(this IDocReceiverElement element) => element.FullName != null && element.Place != null && element.Ink != null; } }