Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / Choices.cs / 1 / Choices.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 ("{_oneOf.DebugSummary}")] public class Choices { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// public Choices () { } ////// /// /// public Choices (params string [] phrases) { Helpers.ThrowIfNull (phrases, "phrases"); Add (phrases); } ////// /// /// public Choices (params GrammarBuilder [] alternateChoices) { Helpers.ThrowIfNull (alternateChoices, "alternateChoices"); Add (alternateChoices); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// /// /// public void Add (params string [] phrases) { Helpers.ThrowIfNull (phrases, "phrases"); foreach (string phrase in phrases) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); _oneOf.Add (phrase); } } ////// /// /// public void Add (params GrammarBuilder [] alternateChoices) { Helpers.ThrowIfNull (alternateChoices, "alternateChoices"); foreach (GrammarBuilder alternateChoice in alternateChoices) { Helpers.ThrowIfNull (alternateChoice, "alternateChoice"); _oneOf.Items.Add (new ItemElement (alternateChoice)); } } ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties internal OneOfElement OneOf { get { return _oneOf; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private OneOfElement _oneOf = new OneOfElement (); #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 ("{_oneOf.DebugSummary}")] public class Choices { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// public Choices () { } ////// /// /// public Choices (params string [] phrases) { Helpers.ThrowIfNull (phrases, "phrases"); Add (phrases); } ////// /// /// public Choices (params GrammarBuilder [] alternateChoices) { Helpers.ThrowIfNull (alternateChoices, "alternateChoices"); Add (alternateChoices); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// /// /// public void Add (params string [] phrases) { Helpers.ThrowIfNull (phrases, "phrases"); foreach (string phrase in phrases) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); _oneOf.Add (phrase); } } ////// /// /// public void Add (params GrammarBuilder [] alternateChoices) { Helpers.ThrowIfNull (alternateChoices, "alternateChoices"); foreach (GrammarBuilder alternateChoice in alternateChoices) { Helpers.ThrowIfNull (alternateChoice, "alternateChoice"); _oneOf.Items.Add (new ItemElement (alternateChoice)); } } ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties internal OneOfElement OneOf { get { return _oneOf; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private OneOfElement _oneOf = new OneOfElement (); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TagPrefixAttribute.cs
- TcpChannelHelper.cs
- AspNetHostingPermission.cs
- DataGridParentRows.cs
- GridViewColumn.cs
- ExpressionLexer.cs
- KnownBoxes.cs
- IsolatedStorageFile.cs
- PersonalizationStateInfo.cs
- RowToParametersTransformer.cs
- ListItemParagraph.cs
- Simplifier.cs
- BuildResult.cs
- SignedXmlDebugLog.cs
- SQLRoleProvider.cs
- WebPartConnectionCollection.cs
- MetaDataInfo.cs
- MetaModel.cs
- StylusButtonCollection.cs
- LinkLabelLinkClickedEvent.cs
- RenamedEventArgs.cs
- LocalValueEnumerator.cs
- MulticastNotSupportedException.cs
- ObjectSpanRewriter.cs
- Frame.cs
- ToolstripProfessionalRenderer.cs
- DataSvcMapFileSerializer.cs
- CharAnimationBase.cs
- BamlLocalizationDictionary.cs
- WpfGeneratedKnownProperties.cs
- CodeChecksumPragma.cs
- DataColumnPropertyDescriptor.cs
- WhiteSpaceTrimStringConverter.cs
- parserscommon.cs
- BufferModesCollection.cs
- WebZone.cs
- CodeExpressionStatement.cs
- RelationshipConstraintValidator.cs
- OracleMonthSpan.cs
- ColumnMap.cs
- WebScriptMetadataMessage.cs
- UiaCoreApi.cs
- FollowerQueueCreator.cs
- OdbcConnectionStringbuilder.cs
- TdsValueSetter.cs
- ExternalException.cs
- OptimisticConcurrencyException.cs
- ManualWorkflowSchedulerService.cs
- BamlRecordWriter.cs
- TraceContextRecord.cs
- Attributes.cs
- Int32Converter.cs
- WorkflowApplicationAbortedException.cs
- WebPartConnection.cs
- DLinqDataModelProvider.cs
- Helpers.cs
- XamlStyleSerializer.cs
- SchemaImporterExtensionsSection.cs
- ListItemConverter.cs
- GenericUriParser.cs
- RecordsAffectedEventArgs.cs
- StrokeCollection2.cs
- StaticFileHandler.cs
- TreeChangeInfo.cs
- ObjectItemCollection.cs
- WorkflowViewStateService.cs
- PerformanceCounterPermissionAttribute.cs
- ListCommandEventArgs.cs
- MappingModelBuildProvider.cs
- TransportContext.cs
- BitmapImage.cs
- ClassImporter.cs
- PageSetupDialog.cs
- DefaultEventAttribute.cs
- SqlLiftWhereClauses.cs
- ControlUtil.cs
- HitTestDrawingContextWalker.cs
- XmlUnspecifiedAttribute.cs
- StringHandle.cs
- XslTransform.cs
- RegexInterpreter.cs
- JsonWriter.cs
- XmlSchema.cs
- WmlListAdapter.cs
- GreenMethods.cs
- RegistryPermission.cs
- InvalidTimeZoneException.cs
- ExternalException.cs
- UTF8Encoding.cs
- Pair.cs
- Floater.cs
- XmlCharType.cs
- UrlMappingCollection.cs
- HtmlElementErrorEventArgs.cs
- GACIdentityPermission.cs
- PriorityBindingExpression.cs
- PasswordBoxAutomationPeer.cs
- TextServicesHost.cs
- StandardCommands.cs
- ChildDocumentBlock.cs