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 / SrgsGrammar / SrgsRulesCollection.cs / 1 / SrgsRulesCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 5/1/2004 jeanfp //--------------------------------------------------------------------------- using System; using System.Collections.ObjectModel; using System.Speech.Internal; namespace System.Speech.Recognition.SrgsGrammar { ////// Summary description for Rules. /// [Serializable] public sealed class SrgsRulesCollection : KeyedCollection{ /// /// TODOC /// /// public void Add (params SrgsRule [] rules) { Helpers.ThrowIfNull (rules, "rules"); for (int iRule = 0; iRule < rules.Length; iRule++) { if (rules [iRule] == null) { throw new ArgumentNullException ("rules", SR.Get (SRID.ParamsEntryNullIllegal)); } base.Add (rules [iRule]); } } ////// TODOC /// /// ///protected override string GetKeyForItem (SrgsRule rule) { if (rule == null) { throw new ArgumentNullException ("rule"); } return rule.Id; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // // Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // // History: // 5/1/2004 jeanfp //--------------------------------------------------------------------------- using System; using System.Collections.ObjectModel; using System.Speech.Internal; namespace System.Speech.Recognition.SrgsGrammar { ////// Summary description for Rules. /// [Serializable] public sealed class SrgsRulesCollection : KeyedCollection{ /// /// TODOC /// /// public void Add (params SrgsRule [] rules) { Helpers.ThrowIfNull (rules, "rules"); for (int iRule = 0; iRule < rules.Length; iRule++) { if (rules [iRule] == null) { throw new ArgumentNullException ("rules", SR.Get (SRID.ParamsEntryNullIllegal)); } base.Add (rules [iRule]); } } ////// TODOC /// /// ///protected override string GetKeyForItem (SrgsRule rule) { if (rule == null) { throw new ArgumentNullException ("rule"); } return rule.Id; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MemberPath.cs
- DependencyPropertyKey.cs
- CommandValueSerializer.cs
- CompareValidator.cs
- PaperSize.cs
- ObjectDisposedException.cs
- _SslState.cs
- ObjectListSelectEventArgs.cs
- ACE.cs
- MimeXmlReflector.cs
- HighlightVisual.cs
- CompilerError.cs
- InvokeHandlers.cs
- Tokenizer.cs
- ObjRef.cs
- TemplateColumn.cs
- DateTimeConverter2.cs
- Label.cs
- UnionCqlBlock.cs
- _SSPIWrapper.cs
- QfeChecker.cs
- BaseHashHelper.cs
- Win32PrintDialog.cs
- ParserHooks.cs
- FixUpCollection.cs
- DataBoundControlAdapter.cs
- CancellationTokenRegistration.cs
- ResourceReferenceExpressionConverter.cs
- MessagePropertyVariants.cs
- BaseDataListPage.cs
- DbParameterCollectionHelper.cs
- FlowLayout.cs
- PropertySourceInfo.cs
- WindowsListViewItemStartMenu.cs
- XmlSchemaChoice.cs
- ProtocolReflector.cs
- ValueConversionAttribute.cs
- XmlDsigSep2000.cs
- PopupRootAutomationPeer.cs
- ButtonBase.cs
- FlowDocumentFormatter.cs
- ParallelDesigner.xaml.cs
- FixedSOMPage.cs
- FlatButtonAppearance.cs
- XmlImplementation.cs
- ProcessHostConfigUtils.cs
- SqlConnectionStringBuilder.cs
- MDIClient.cs
- DataGridViewTextBoxCell.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ClickablePoint.cs
- XPathParser.cs
- SimpleExpression.cs
- MessageQueueCriteria.cs
- MembershipSection.cs
- ItemContainerProviderWrapper.cs
- DetailsViewInsertEventArgs.cs
- DrawingContextWalker.cs
- ReaderOutput.cs
- DisplayInformation.cs
- AppSettingsExpressionBuilder.cs
- UniqueEventHelper.cs
- GeometryGroup.cs
- UTF8Encoding.cs
- SafeRightsManagementSessionHandle.cs
- Int32EqualityComparer.cs
- SubordinateTransaction.cs
- VisualStyleInformation.cs
- TraceSource.cs
- CacheForPrimitiveTypes.cs
- PixelShader.cs
- QuestionEventArgs.cs
- WpfMemberInvoker.cs
- ActivityDesignerHighlighter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SiteMapNode.cs
- PageBuildProvider.cs
- PreviewPrintController.cs
- mda.cs
- DbModificationCommandTree.cs
- PolicyChain.cs
- UpdateCompiler.cs
- PipelineDeploymentState.cs
- ReceiveReply.cs
- OdbcConnectionFactory.cs
- CompiledRegexRunner.cs
- HeaderCollection.cs
- DispatcherFrame.cs
- JapaneseLunisolarCalendar.cs
- JoinCqlBlock.cs
- BamlWriter.cs
- FixedSOMTableRow.cs
- smtppermission.cs
- BitConverter.cs
- PreloadedPackages.cs
- SelectedDatesCollection.cs
- SamlAssertion.cs
- DynamicPropertyReader.cs
- ConfigXmlSignificantWhitespace.cs
- ArrayExtension.cs