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
- TraceHandlerErrorFormatter.cs
- HtmlShimManager.cs
- TypeSource.cs
- CodeSnippetTypeMember.cs
- TimeoutHelper.cs
- DataGridLinkButton.cs
- XmlByteStreamWriter.cs
- ObfuscationAttribute.cs
- VerificationException.cs
- SystemWebExtensionsSectionGroup.cs
- ExpressionsCollectionConverter.cs
- x509store.cs
- Int32Collection.cs
- File.cs
- MarshalByRefObject.cs
- UserUseLicenseDictionaryLoader.cs
- PrintPreviewGraphics.cs
- BlurEffect.cs
- StreamGeometryContext.cs
- NetCodeGroup.cs
- CheckBoxPopupAdapter.cs
- DataGridViewSelectedRowCollection.cs
- LogicalChannelCollection.cs
- ControlLocalizer.cs
- RelationshipEndCollection.cs
- AddingNewEventArgs.cs
- Registry.cs
- XmlSchemaSimpleTypeRestriction.cs
- ProxyWebPartManager.cs
- CommandManager.cs
- SqlNodeTypeOperators.cs
- XsltLibrary.cs
- ConstraintCollection.cs
- MissingMemberException.cs
- InputBinding.cs
- SecurityUtils.cs
- GroupItem.cs
- XMLUtil.cs
- InternalMappingException.cs
- TCEAdapterGenerator.cs
- DPTypeDescriptorContext.cs
- SafePEFileHandle.cs
- URLIdentityPermission.cs
- MemoryResponseElement.cs
- TextPenaltyModule.cs
- XmlSchemaSimpleContentExtension.cs
- OdbcPermission.cs
- XmlSerializableReader.cs
- ColorInterpolationModeValidation.cs
- QueryCorrelationInitializer.cs
- MissingMemberException.cs
- RuleEngine.cs
- DeferredSelectedIndexReference.cs
- UriScheme.cs
- AutomationElementIdentifiers.cs
- RequestContext.cs
- DataGridViewCellEventArgs.cs
- HtmlTextBoxAdapter.cs
- XmlAttributeOverrides.cs
- LinqDataSourceDisposeEventArgs.cs
- RelationshipEndMember.cs
- TextWriterTraceListener.cs
- DirectoryInfo.cs
- WindowsIPAddress.cs
- TableAdapterManagerGenerator.cs
- DrawListViewColumnHeaderEventArgs.cs
- ValidationErrorEventArgs.cs
- RankException.cs
- CodeEntryPointMethod.cs
- PlainXmlDeserializer.cs
- EnterpriseServicesHelper.cs
- Relationship.cs
- Transform.cs
- ExpressionPrinter.cs
- RequestUriProcessor.cs
- PathGradientBrush.cs
- TableCellAutomationPeer.cs
- SurrogateSelector.cs
- EventlogProvider.cs
- UnsafeNativeMethods.cs
- HotCommands.cs
- SqlLiftIndependentRowExpressions.cs
- SettingsBase.cs
- FileCodeGroup.cs
- DesignSurfaceManager.cs
- CqlErrorHelper.cs
- UnsafeNativeMethods.cs
- FlowDocumentView.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- RequiredFieldValidator.cs
- SafeArrayRankMismatchException.cs
- BinaryObjectInfo.cs
- NetworkCredential.cs
- StringCollectionMarkupSerializer.cs
- XmlMessageFormatter.cs
- MultiTargetingUtil.cs
- SoapBinding.cs
- NamespaceCollection.cs
- XmlSchemaDatatype.cs
- AnnotationStore.cs