Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- PrePostDescendentsWalker.cs
- DSASignatureFormatter.cs
- Int32EqualityComparer.cs
- FileVersionInfo.cs
- ByteAnimationBase.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SafeReversePInvokeHandle.cs
- Helper.cs
- XappLauncher.cs
- BamlBinaryWriter.cs
- PriorityQueue.cs
- QuestionEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- OdbcConnectionFactory.cs
- TimeSpanValidatorAttribute.cs
- KeyToListMap.cs
- AttachedAnnotation.cs
- CustomAttribute.cs
- WeakReference.cs
- DataGridViewAutoSizeModeEventArgs.cs
- METAHEADER.cs
- BaseDataList.cs
- ThreadStateException.cs
- HTMLTagNameToTypeMapper.cs
- CellParagraph.cs
- WrappingXamlSchemaContext.cs
- CqlGenerator.cs
- SmtpLoginAuthenticationModule.cs
- precedingsibling.cs
- ActionFrame.cs
- SourceChangedEventArgs.cs
- NativeMethodsOther.cs
- Bezier.cs
- SqlNodeAnnotation.cs
- DataBindingExpressionBuilder.cs
- FormViewDeleteEventArgs.cs
- CorePropertiesFilter.cs
- DocumentReferenceCollection.cs
- CompositeScriptReferenceEventArgs.cs
- QilExpression.cs
- TextDecorationCollection.cs
- DodSequenceMerge.cs
- _ShellExpression.cs
- TimeSpanValidatorAttribute.cs
- ApplicationActivator.cs
- ZipIOLocalFileBlock.cs
- BitmapEffectInput.cs
- ListViewItem.cs
- DecoderFallback.cs
- XpsFilter.cs
- ResolveDuplexAsyncResult.cs
- ObjectQuery.cs
- HttpRuntimeSection.cs
- TransactionScopeDesigner.cs
- DoubleLinkListEnumerator.cs
- Floater.cs
- EnvironmentPermission.cs
- XmlTextEncoder.cs
- CodeMethodReturnStatement.cs
- ControlIdConverter.cs
- RadioButtonList.cs
- DiscoveryClientProtocol.cs
- DBPropSet.cs
- VersionPair.cs
- ReliableChannelBinder.cs
- ResourceCodeDomSerializer.cs
- SafeCryptContextHandle.cs
- WebPartEditVerb.cs
- DrawingBrush.cs
- HttpCacheVaryByContentEncodings.cs
- DataContractSerializerMessageContractImporter.cs
- AssemblyAssociatedContentFileAttribute.cs
- HandlerFactoryCache.cs
- ConfigurationSettings.cs
- TextTreeObjectNode.cs
- OLEDB_Util.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AutoGeneratedField.cs
- Panel.cs
- EventListenerClientSide.cs
- HttpRuntime.cs
- Point3DAnimationBase.cs
- CryptoHandle.cs
- XmlArrayItemAttribute.cs
- WindowsRegion.cs
- ObjectStorage.cs
- PrintingPermission.cs
- TabControlDesigner.cs
- SqlParameterizer.cs
- FileLoadException.cs
- updatecommandorderer.cs
- lengthconverter.cs
- OletxTransactionManager.cs
- GetPageCompletedEventArgs.cs
- StackOverflowException.cs
- SQLChars.cs
- ThreadWorkerController.cs
- OrderPreservingPipeliningSpoolingTask.cs
- SecurityPermission.cs
- TreeNodeEventArgs.cs