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
- UriScheme.cs
- SessionStateModule.cs
- RequestBringIntoViewEventArgs.cs
- ProvidersHelper.cs
- ImageMapEventArgs.cs
- RequestResizeEvent.cs
- DataBoundLiteralControl.cs
- ClientTargetSection.cs
- ChangeInterceptorAttribute.cs
- MsmqIntegrationInputChannel.cs
- RenamedEventArgs.cs
- RegistryConfigurationProvider.cs
- AccessViolationException.cs
- columnmapkeybuilder.cs
- EventLogSession.cs
- _ListenerRequestStream.cs
- DeclaredTypeElement.cs
- ADRoleFactoryConfiguration.cs
- WorkflowQueueInfo.cs
- RoutingConfiguration.cs
- StackBuilderSink.cs
- TabItemWrapperAutomationPeer.cs
- ProfileSection.cs
- QueryPageSettingsEventArgs.cs
- MissingMemberException.cs
- CodeValidator.cs
- _ChunkParse.cs
- ExpressionSelection.cs
- MachineKey.cs
- InputQueueChannelAcceptor.cs
- FrameworkTemplate.cs
- ThemeDirectoryCompiler.cs
- UnsafeNativeMethods.cs
- BaseDataList.cs
- Column.cs
- LineServicesCallbacks.cs
- SQlBooleanStorage.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HScrollBar.cs
- ChangeConflicts.cs
- BamlResourceContent.cs
- ClientRequest.cs
- ColumnMap.cs
- RTLAwareMessageBox.cs
- ShapingWorkspace.cs
- WebPartHelpVerb.cs
- DataColumnCollection.cs
- storagemappingitemcollection.viewdictionary.cs
- ThreadInterruptedException.cs
- XmlSchemaExternal.cs
- SoapInteropTypes.cs
- StrongNameUtility.cs
- OciEnlistContext.cs
- FtpWebRequest.cs
- DependencyPropertyChangedEventArgs.cs
- VideoDrawing.cs
- KerberosReceiverSecurityToken.cs
- documentsequencetextcontainer.cs
- DataViewListener.cs
- FontStretch.cs
- RuntimeArgumentHandle.cs
- DbTransaction.cs
- AuthenticationModuleElementCollection.cs
- RuleElement.cs
- Color.cs
- XPathNodeIterator.cs
- RectKeyFrameCollection.cs
- SerializationInfo.cs
- Dump.cs
- TextDecorations.cs
- OracleDateTime.cs
- SessionStateSection.cs
- SettingsPropertyWrongTypeException.cs
- ActiveDocumentEvent.cs
- Soap12ServerProtocol.cs
- LogSwitch.cs
- BookmarkScopeManager.cs
- ModifiableIteratorCollection.cs
- CornerRadius.cs
- EventItfInfo.cs
- AsymmetricSignatureFormatter.cs
- MulticastDelegate.cs
- DataGridViewRowConverter.cs
- CallbackTimeoutsElement.cs
- DataGridPagerStyle.cs
- DataGridViewHitTestInfo.cs
- EndpointIdentity.cs
- SiteMapProvider.cs
- SqlProviderServices.cs
- IdentityManager.cs
- ComponentDispatcher.cs
- MediaTimeline.cs
- RightsManagementInformation.cs
- _DisconnectOverlappedAsyncResult.cs
- ValueSerializerAttribute.cs
- SystemWebExtensionsSectionGroup.cs
- SqlDataSourceCustomCommandPanel.cs
- UIElementHelper.cs
- CookieParameter.cs
- GridViewAutomationPeer.cs