private void CheckCommand() { if (_command == null) { throw new InvalidOperationException(SR.Xslt_NoStylesheetLoaded); } }