3 instantiations of SemanticValue
System.Speech (3)
Result\RecognizedPhrase.cs (3)
444_semantics = new SemanticValue("<ROOT>", null, _confidence); 468SemanticValue semanticValue = new(ruleTree._name, null, ruleTree._confidence); 736return new SemanticValue(propertyName, propertyValue, property.SREngineConfidence);
59 references to SemanticValue
System.Speech (59)
Result\RecognizedPhrase.cs (25)
218public SemanticValue? Semantics 466private static SemanticValue RecursiveBuildSemanticProperties(IList<RecognizedWordUnit> words, List<ResultPropertiesRef> properties, RuleNode ruleTree, GrammarOptions semanticTag, ref Collection<SemanticValue>? dupItems) 468SemanticValue semanticValue = new(ruleTree._name, null, ruleTree._confidence); 474SemanticValue childrenSemantics = RecursiveBuildSemanticProperties(words, properties, children, semanticTag, ref dupItems); 477foreach (KeyValuePair<string, SemanticValue> kv in childrenSemantics._dictionary) 549SemanticValue thisSemanticValue = ExtractSemanticValueInformation(semanticsOffset, property, phraseBuffer, isSapi53Header, out propertyName); 575private void RecursivelyExtractSemanticValue(IntPtr phraseBuffer, int semanticsOffset, SemanticValue semanticValue, IList<RecognizedWordUnit> words, bool isSapi53Header, GrammarOptions semanticTag) 582SemanticValue thisSemanticValue = ExtractSemanticValueInformation(semanticsOffset, property, phraseBuffer, isSapi53Header, out propertyName); 613private static void InsertSemanticValueToDictionary(SemanticValue semanticValue, string propertyName, SemanticValue thisSemanticValue, GrammarOptions semanticTag, ref Collection<SemanticValue>? dupItems) 652dupItems ??= new Collection<SemanticValue>(); 653SemanticValue s = semanticValue._dictionary[key]; 660private static SemanticValue ExtractSemanticValueInformation(int semanticsOffset, SPSERIALIZEDPHRASEPROPERTY property, IntPtr phraseBuffer, bool isSapi53Header, out string propertyName) 808private static bool TryExecuteOnParse(RuleNode ruleRef, SemanticValue value, IList<RecognizedWordUnit> words, out object? newValue, ref Exception? exceptionThrown) 854private static bool ExecuteOnParse(Grammar grammar, RuleNode ruleRef, SemanticValue value, IList<RecognizedWordUnit> words, out object? newValue) 1058private void AppendPropertiesSML(XmlDocument document, XmlElement alternateNode, SemanticValue? semanticsNode, NumberFormatInfo nfo) 1062foreach (KeyValuePair<string, SemanticValue> kv in semanticsNode) 1110private void AppendAttributes(XmlElement propertyNode, SemanticValue semanticValue) 1112foreach (KeyValuePair<string, SemanticValue> kv in semanticValue) 1196internal SemanticValue _value; 1199internal ResultPropertiesRef(string name, SemanticValue value, RuleNode ruleNode) 1216private SemanticValue? _semantics; 1228private Collection<SemanticValue>? _dupItems;
Result\SemanticValue.cs (34)
15public sealed class SemanticValue : IDictionary<string, SemanticValue> 24_dictionary = new Dictionary<string, SemanticValue>(); 40SemanticValue? refObj = obj as SemanticValue; 46foreach (KeyValuePair<string, SemanticValue> kv in _dictionary) 91public SemanticValue this[string key] 96public bool Contains(KeyValuePair<string, SemanticValue> item) 112void ICollection<KeyValuePair<string, SemanticValue>>.Add(KeyValuePair<string, SemanticValue> key) 117void IDictionary<string, SemanticValue>.Add(string key, SemanticValue value) 122void ICollection<KeyValuePair<string, SemanticValue>>.Clear() 127bool ICollection<KeyValuePair<string, SemanticValue>>.Remove(KeyValuePair<string, SemanticValue> key) 132bool IDictionary<string, SemanticValue>.Remove(string key) 136void ICollection<KeyValuePair<string, SemanticValue>>.CopyTo(KeyValuePair<string, SemanticValue>[] array, int index) 138((ICollection<KeyValuePair<string, SemanticValue>>)_dictionary).CopyTo(array, index); 140IEnumerator<KeyValuePair<string, SemanticValue>> IEnumerable<KeyValuePair<string, SemanticValue>>.GetEnumerator() 145bool ICollection<KeyValuePair<string, SemanticValue>>.IsReadOnly 150ICollection<string> IDictionary<string, SemanticValue>.Keys 155ICollection<SemanticValue> IDictionary<string, SemanticValue>.Values 161return ((IEnumerable<KeyValuePair<string, SemanticValue>>)this).GetEnumerator(); 164bool IDictionary<string, SemanticValue>.TryGetValue(string key, [NotNullWhen(true)] out SemanticValue? value) 185internal Dictionary<string, SemanticValue> _dictionary; 204public SemanticValueDebugDisplay(SemanticValue value) 244public SemanticValue[] AKeys 248SemanticValue[] keys = new SemanticValue[_dictionary.Count]; 250foreach (KeyValuePair<string, SemanticValue> kv in _dictionary) 261private Dictionary<string, SemanticValue> _dictionary;