public static void WorksheetWrapper(IWorksheetWrapper wrapper) { if (wrapper is null) { throw new SpreadsheetNullWorksheetWrapperException(); } }
public static WorksheetWrapper AsWorksheetWrapper(this IWorksheetWrapper instance) { if (instance is WorksheetWrapper result) { return(result); } throw new SpreadsheetException($"'{nameof(instance)}' is not an instance of '{typeof(WorksheetWrapper).FullName}'"); }