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
- SafeRightsManagementHandle.cs
- FormViewRow.cs
- PropertyGrid.cs
- XamlGridLengthSerializer.cs
- CultureTable.cs
- WebScriptMetadataInstanceContextProvider.cs
- AuthenticationModulesSection.cs
- Storyboard.cs
- WebPartMenu.cs
- RangeValuePatternIdentifiers.cs
- Message.cs
- XmlSchemaInferenceException.cs
- AuthorizationRule.cs
- ClassHandlersStore.cs
- MergeFailedEvent.cs
- ContextDataSource.cs
- Image.cs
- NamedPermissionSet.cs
- ToolZoneDesigner.cs
- HttpCacheParams.cs
- LogSwitch.cs
- TreeBuilderBamlTranslator.cs
- DbSetClause.cs
- AlternateViewCollection.cs
- WebProxyScriptElement.cs
- CheckBox.cs
- InstanceNormalEvent.cs
- ParameterCollection.cs
- EventTask.cs
- ClientProxyGenerator.cs
- Geometry3D.cs
- CollectionDataContractAttribute.cs
- InteropAutomationProvider.cs
- controlskin.cs
- _StreamFramer.cs
- XmlResolver.cs
- EventLogStatus.cs
- TextTreeTextElementNode.cs
- MultiByteCodec.cs
- TripleDESCryptoServiceProvider.cs
- SqlConnectionHelper.cs
- EdmMember.cs
- CLSCompliantAttribute.cs
- MD5CryptoServiceProvider.cs
- HandleRef.cs
- XmlSchemaSimpleTypeUnion.cs
- OdbcConnectionString.cs
- HScrollBar.cs
- XmlElement.cs
- BrowserInteropHelper.cs
- DataGridViewCellValueEventArgs.cs
- WebPartsPersonalization.cs
- FocusManager.cs
- SafeRightsManagementSessionHandle.cs
- StyleTypedPropertyAttribute.cs
- DataGridAddNewRow.cs
- ZipIOExtraFieldZip64Element.cs
- SystemWebCachingSectionGroup.cs
- MergablePropertyAttribute.cs
- FixedTextView.cs
- SourceCollection.cs
- TypeUsage.cs
- Message.cs
- RuntimeArgumentHandle.cs
- IItemProperties.cs
- InstanceDescriptor.cs
- QilNode.cs
- BooleanConverter.cs
- CacheDependency.cs
- ElapsedEventArgs.cs
- IsolatedStorageFilePermission.cs
- EffectiveValueEntry.cs
- formatter.cs
- TypeKeyValue.cs
- ProgressPage.cs
- TransformedBitmap.cs
- TouchDevice.cs
- NetWebProxyFinder.cs
- ContentPresenter.cs
- StylusPointProperty.cs
- XmlDesignerDataSourceView.cs
- EncryptedData.cs
- HttpTransportSecurity.cs
- DataViewSettingCollection.cs
- EntityContainerEntitySetDefiningQuery.cs
- nulltextnavigator.cs
- DllNotFoundException.cs
- AssemblyAssociatedContentFileAttribute.cs
- DefinitionBase.cs
- EdgeModeValidation.cs
- StylusShape.cs
- ImageAnimator.cs
- ToolBarButtonDesigner.cs
- RelatedCurrencyManager.cs
- AxHostDesigner.cs
- Token.cs
- MouseEvent.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DetailsView.cs
- TrustManager.cs