Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SemanticResultKey.cs / 1 / SemanticResultKey.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_semanticKey.DebugSummary}")] public class SemanticResultKey { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// /// private SemanticResultKey (string semanticResultKey) : base () { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); _semanticKey = new SemanticKeyElement (semanticResultKey); } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params string [] phrases) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (phrases, "phrases"); // Build a grammar builder with all the phrases foreach (string phrase in phrases) { _semanticKey.Add ((string) phrase.Clone ()); } } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params GrammarBuilder [] builders) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (builders, "phrases"); // Build a grammar builder with all the grammar builders foreach (GrammarBuilder builder in builders) { _semanticKey.Add (builder.Clone ()); } } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties internal SemanticKeyElement SemanticKeyElement { get { return _semanticKey; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private readonly SemanticKeyElement _semanticKey; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_semanticKey.DebugSummary}")] public class SemanticResultKey { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// /// private SemanticResultKey (string semanticResultKey) : base () { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); _semanticKey = new SemanticKeyElement (semanticResultKey); } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params string [] phrases) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (phrases, "phrases"); // Build a grammar builder with all the phrases foreach (string phrase in phrases) { _semanticKey.Add ((string) phrase.Clone ()); } } ////// /// /// /// public SemanticResultKey (string semanticResultKey, params GrammarBuilder [] builders) : this (semanticResultKey) { Helpers.ThrowIfEmptyOrNull (semanticResultKey, "semanticResultKey"); Helpers.ThrowIfNull (builders, "phrases"); // Build a grammar builder with all the grammar builders foreach (GrammarBuilder builder in builders) { _semanticKey.Add (builder.Clone ()); } } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties internal SemanticKeyElement SemanticKeyElement { get { return _semanticKey; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private readonly SemanticKeyElement _semanticKey; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FieldNameLookup.cs
- TemplatedAdorner.cs
- OleAutBinder.cs
- WindowsStartMenu.cs
- DelegatedStream.cs
- ProviderConnectionPointCollection.cs
- dsa.cs
- XmlSchemaObject.cs
- FixedDSBuilder.cs
- TreeViewImageKeyConverter.cs
- NegotiateStream.cs
- TextContainerChangeEventArgs.cs
- DrawingContextWalker.cs
- ActivityXRefConverter.cs
- CacheChildrenQuery.cs
- FontNamesConverter.cs
- LiteralTextParser.cs
- Hash.cs
- RangeValuePatternIdentifiers.cs
- CompareValidator.cs
- AutoGeneratedField.cs
- ScriptServiceAttribute.cs
- MonthCalendar.cs
- XmlDictionaryWriter.cs
- XmlSerializableWriter.cs
- AmbientProperties.cs
- securitymgrsite.cs
- SimpleParser.cs
- BinaryNode.cs
- AudienceUriMode.cs
- Exceptions.cs
- SqlCrossApplyToCrossJoin.cs
- MobileControlPersister.cs
- SamlAuthenticationStatement.cs
- HideDisabledControlAdapter.cs
- OwnerDrawPropertyBag.cs
- SimplePropertyEntry.cs
- CodeMemberMethod.cs
- MonitoringDescriptionAttribute.cs
- DataGridViewRowPostPaintEventArgs.cs
- CalculatedColumn.cs
- DSASignatureDeformatter.cs
- Suspend.cs
- FormsIdentity.cs
- RouteUrlExpressionBuilder.cs
- CachingHintValidation.cs
- CommandLibraryHelper.cs
- SqlVisitor.cs
- TraceSection.cs
- AssemblyNameProxy.cs
- EditorBrowsableAttribute.cs
- PermissionRequestEvidence.cs
- TriggerBase.cs
- odbcmetadatacolumnnames.cs
- CacheMemory.cs
- NegatedCellConstant.cs
- BitmapEffect.cs
- TargetControlTypeCache.cs
- PersistChildrenAttribute.cs
- GridViewSelectEventArgs.cs
- OpCodes.cs
- SqlNodeAnnotations.cs
- SQLChars.cs
- MediaElement.cs
- MultiBindingExpression.cs
- NameValuePermission.cs
- ModuleConfigurationInfo.cs
- CheckBoxField.cs
- StsCommunicationException.cs
- HierarchicalDataSourceControl.cs
- DockPatternIdentifiers.cs
- SplashScreenNativeMethods.cs
- OleDbWrapper.cs
- CustomAttribute.cs
- DoWorkEventArgs.cs
- LinqDataView.cs
- CqlErrorHelper.cs
- __TransparentProxy.cs
- PackageStore.cs
- Timer.cs
- RoutingConfiguration.cs
- WebPartTracker.cs
- DataKeyArray.cs
- httpstaticobjectscollection.cs
- ButtonChrome.cs
- PolyQuadraticBezierSegment.cs
- ValueTypeFieldReference.cs
- ApplicationFileParser.cs
- Guid.cs
- GeneralTransform3DCollection.cs
- SrgsGrammarCompiler.cs
- MetadataCollection.cs
- TableLayoutStyle.cs
- HScrollBar.cs
- DbMetaDataCollectionNames.cs
- Propagator.Evaluator.cs
- SchemaNames.cs
- wgx_exports.cs
- RIPEMD160Managed.cs
- HealthMonitoringSectionHelper.cs