68 references to ThrowIfEmptyOrNull
System.Speech (68)
Internal\ObjectToken\RegistryDataKey.cs (2)
359Helpers.ThrowIfEmptyOrNull(keyName, nameof(keyName)); 378Helpers.ThrowIfEmptyOrNull(keyName, nameof(keyName));
Internal\ObjectToken\SAPICategories.cs (1)
17Helpers.ThrowIfEmptyOrNull(category, nameof(category));
Internal\SrgsParser\XmlParser.cs (1)
1830Helpers.ThrowIfEmptyOrNull(id, nameof(id));
Recognition\Choices.cs (1)
43Helpers.ThrowIfEmptyOrNull(phrase, "phrase");
Recognition\Grammar.cs (1)
590Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\GrammarBuilder.cs (7)
77Helpers.ThrowIfEmptyOrNull(phrase, nameof(phrase)); 84Helpers.ThrowIfEmptyOrNull(phrase, nameof(phrase)); 92Helpers.ThrowIfEmptyOrNull(phrase, nameof(phrase)); 187Helpers.ThrowIfEmptyOrNull(category, nameof(category)); 204Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 224Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 225Helpers.ThrowIfEmptyOrNull(rule, nameof(rule));
Recognition\RecognizerBase.cs (8)
313Helpers.ThrowIfEmptyOrNull(inputText, nameof(inputText)); 320Helpers.ThrowIfEmptyOrNull(inputText, nameof(inputText)); 327Helpers.ThrowIfEmptyOrNull(inputText, nameof(inputText)); 346Helpers.ThrowIfEmptyOrNull(inputText, nameof(inputText)); 828Helpers.ThrowIfEmptyOrNull(settingName, nameof(settingName)); 836Helpers.ThrowIfEmptyOrNull(settingName, nameof(settingName)); 855Helpers.ThrowIfEmptyOrNull(settingName, nameof(settingName)); 862Helpers.ThrowIfEmptyOrNull(settingName, nameof(settingName));
Recognition\SemanticResultKey.cs (3)
18Helpers.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey)); 26Helpers.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey)); 39Helpers.ThrowIfEmptyOrNull(semanticResultKey, nameof(semanticResultKey));
Recognition\SemanticResultValue.cs (1)
22Helpers.ThrowIfEmptyOrNull(phrase, nameof(phrase));
Recognition\SpeechRecognitionEngine.cs (2)
59Helpers.ThrowIfEmptyOrNull(recognizerId, nameof(recognizerId)); 228Helpers.ThrowIfEmptyOrNull(path, nameof(path));
Recognition\SpeechUI.cs (1)
16Helpers.ThrowIfEmptyOrNull(feedback, nameof(feedback));
Recognition\SrgsGrammar\SrgsDocument.cs (2)
34Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 264Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsGrammar.cs (1)
457Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsGrammarCompiler.cs (4)
24Helpers.ThrowIfEmptyOrNull(inputPath, nameof(inputPath)); 61Helpers.ThrowIfEmptyOrNull(outputPath, nameof(outputPath)); 96Helpers.ThrowIfEmptyOrNull(outputPath, nameof(outputPath)); 107Helpers.ThrowIfEmptyOrNull(outputPath, nameof(outputPath));
Recognition\SrgsGrammar\SrgsItem.cs (1)
27Helpers.ThrowIfEmptyOrNull(text, nameof(text));
Recognition\SrgsGrammar\SrgsNameValueTag.cs (2)
176Helpers.ThrowIfEmptyOrNull(name, parameterName); 182Helpers.ThrowIfEmptyOrNull(name, parameterName);
Recognition\SrgsGrammar\SrgsRule.cs (1)
122Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsRuleRef.cs (5)
25Helpers.ThrowIfEmptyOrNull(rule, nameof(rule)); 31Helpers.ThrowIfEmptyOrNull(semanticKey, nameof(semanticKey)); 37Helpers.ThrowIfEmptyOrNull(parameters, nameof(parameters)); 50Helpers.ThrowIfEmptyOrNull(semanticKey, nameof(semanticKey)); 57Helpers.ThrowIfEmptyOrNull(parameters, nameof(parameters));
Recognition\SrgsGrammar\SrgsSubset.cs (4)
24Helpers.ThrowIfEmptyOrNull(text, nameof(text)); 34Helpers.ThrowIfEmptyOrNull(_text, nameof(text)); 64Helpers.ThrowIfEmptyOrNull(value, nameof(value)); 66Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Recognition\SrgsGrammar\SrgsToken.cs (4)
22Helpers.ThrowIfEmptyOrNull(text, nameof(text)); 37Helpers.ThrowIfEmptyOrNull(value, nameof(value)); 58Helpers.ThrowIfEmptyOrNull(value, nameof(value)); 72Helpers.ThrowIfEmptyOrNull(value, nameof(value));
Synthesis\PromptBuilder.cs (8)
321Helpers.ThrowIfEmptyOrNull(name, nameof(name)); 547Helpers.ThrowIfEmptyOrNull(sayAs, nameof(sayAs)); 560Helpers.ThrowIfEmptyOrNull(textToSpeak, nameof(textToSpeak)); 561Helpers.ThrowIfEmptyOrNull(pronunciation, nameof(pronunciation)); 659Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 707Helpers.ThrowIfEmptyOrNull(bookmarkName, nameof(bookmarkName)); 730Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 763Helpers.ThrowIfEmptyOrNull(ssmlMarkup, nameof(ssmlMarkup));
Synthesis\SpeechSynthesizer.cs (3)
37Helpers.ThrowIfEmptyOrNull(name, nameof(name)); 189Helpers.ThrowIfEmptyOrNull(path, nameof(path)); 197Helpers.ThrowIfEmptyOrNull(path, nameof(path));
Synthesis\TTSEngine\TTSEngineTypes.cs (4)
177public string TextToSpeak { get { return _textToSpeak; } set { Helpers.ThrowIfEmptyOrNull(value, nameof(value)); _textToSpeak = value; } } 413[DisallowNull] public string? InterpretAs { get { return _interpretAs; } set { Helpers.ThrowIfEmptyOrNull(value, nameof(value)); _interpretAs = value; } } 414[DisallowNull] public string? Format { get { return _format; } set { Helpers.ThrowIfEmptyOrNull(value, nameof(value)); _format = value; } } 415[DisallowNull] public string? Detail { get { return _detail; } set { Helpers.ThrowIfEmptyOrNull(value, nameof(value)); _detail = value; } }
Synthesis\VoiceInfo.cs (1)
24Helpers.ThrowIfEmptyOrNull(name, nameof(name));