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
- FieldTemplateFactory.cs
- COM2PictureConverter.cs
- DataBindingExpressionBuilder.cs
- HttpHeaderCollection.cs
- InstanceNormalEvent.cs
- SessionEndingCancelEventArgs.cs
- WorkflowMarkupSerializationProvider.cs
- ChangeDirector.cs
- SQLRoleProvider.cs
- SafeArrayRankMismatchException.cs
- UIAgentAsyncEndRequest.cs
- ConfigurationValidatorBase.cs
- QueryResult.cs
- AtomParser.cs
- OperationResponse.cs
- SafeThemeHandle.cs
- CodeNamespace.cs
- Token.cs
- Rule.cs
- sortedlist.cs
- SHA1.cs
- BypassElement.cs
- TextElementEnumerator.cs
- RelatedEnd.cs
- PropertyEmitterBase.cs
- ThemeDictionaryExtension.cs
- ToolStripContentPanelRenderEventArgs.cs
- CallbackTimeoutsBehavior.cs
- SelectionEditingBehavior.cs
- WsatEtwTraceListener.cs
- WebBrowserNavigatingEventHandler.cs
- TCPListener.cs
- PathParser.cs
- PropVariant.cs
- TreeNodeBindingDepthConverter.cs
- ListView.cs
- UidManager.cs
- Group.cs
- TypedTableGenerator.cs
- FixedFlowMap.cs
- MetadataItemEmitter.cs
- ConnectorEditor.cs
- ProvideValueServiceProvider.cs
- TakeQueryOptionExpression.cs
- Msec.cs
- CodeSubDirectoriesCollection.cs
- Win32Exception.cs
- DirectoryInfo.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HttpDictionary.cs
- ObjectNotFoundException.cs
- AssemblySettingAttributes.cs
- AspProxy.cs
- XmlDsigSep2000.cs
- StringArrayConverter.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- ProfileProvider.cs
- MouseGestureConverter.cs
- PolyBezierSegmentFigureLogic.cs
- Material.cs
- AuthorizationRule.cs
- ReceiveMessageRecord.cs
- RadioButton.cs
- NameNode.cs
- DataServiceConfiguration.cs
- DeferredReference.cs
- MouseButton.cs
- UserPersonalizationStateInfo.cs
- TriggerActionCollection.cs
- ConfigurationManagerInternalFactory.cs
- figurelengthconverter.cs
- SessionParameter.cs
- PipelineModuleStepContainer.cs
- RecordsAffectedEventArgs.cs
- SuppressIldasmAttribute.cs
- ByteKeyFrameCollection.cs
- ErrorRuntimeConfig.cs
- LineVisual.cs
- _LazyAsyncResult.cs
- ManagedFilter.cs
- safelinkcollection.cs
- Vars.cs
- LayoutTableCell.cs
- DataRelationPropertyDescriptor.cs
- PaperSize.cs
- SpotLight.cs
- WorkflowPersistenceService.cs
- HorizontalAlignConverter.cs
- TemplateManager.cs
- SymLanguageType.cs
- SqlGenericUtil.cs
- ServerProtocol.cs
- AlignmentYValidation.cs
- cryptoapiTransform.cs
- TextDocumentView.cs
- WCFBuildProvider.cs
- ProfileModule.cs
- DataGridViewSelectedCellCollection.cs
- WebPartUserCapability.cs
- SessionEndedEventArgs.cs