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
- PeerCollaboration.cs
- WebHttpSecurityModeHelper.cs
- XNodeValidator.cs
- RtfFormatStack.cs
- NameValuePair.cs
- ChannelAcceptor.cs
- GenerateHelper.cs
- TypeConvertions.cs
- WasAdminWrapper.cs
- MemberHolder.cs
- IsolatedStorageFileStream.cs
- CryptoApi.cs
- DropTarget.cs
- ContractHandle.cs
- TextureBrush.cs
- EmissiveMaterial.cs
- KeyToListMap.cs
- control.ime.cs
- TouchFrameEventArgs.cs
- DataBindingCollection.cs
- MDIWindowDialog.cs
- CallSiteBinder.cs
- CalendarSelectionChangedEventArgs.cs
- SmiMetaDataProperty.cs
- ContextActivityUtils.cs
- XmlSchemaSimpleTypeList.cs
- DetailsViewModeEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- VarRemapper.cs
- SqlXmlStorage.cs
- RelationshipEndCollection.cs
- MessageBox.cs
- EdgeModeValidation.cs
- Environment.cs
- DockProviderWrapper.cs
- NullableLongAverageAggregationOperator.cs
- AppLevelCompilationSectionCache.cs
- TableLayoutSettingsTypeConverter.cs
- KeyToListMap.cs
- ItemContainerGenerator.cs
- ArglessEventHandlerProxy.cs
- ApplicationBuildProvider.cs
- XmlChoiceIdentifierAttribute.cs
- ToolStripItemEventArgs.cs
- BaseValidator.cs
- Debugger.cs
- VolatileEnlistmentState.cs
- SqlTriggerAttribute.cs
- HtmlFormWrapper.cs
- COM2ComponentEditor.cs
- WindowCollection.cs
- Propagator.cs
- NativeMethods.cs
- FloaterBaseParagraph.cs
- EnumDataContract.cs
- TracingConnectionListener.cs
- DeclarativeConditionsCollection.cs
- MissingSatelliteAssemblyException.cs
- SharedUtils.cs
- XmlTextAttribute.cs
- SelectionProviderWrapper.cs
- OleDbDataAdapter.cs
- WorkItem.cs
- Stack.cs
- _SslSessionsCache.cs
- StateMachineWorkflowInstance.cs
- FontSource.cs
- SoapReflectionImporter.cs
- ContextMenuStripActionList.cs
- WebConfigurationFileMap.cs
- Span.cs
- SmtpFailedRecipientsException.cs
- AttachedAnnotationChangedEventArgs.cs
- CompilerError.cs
- PropertiesTab.cs
- Cell.cs
- SqlPersonalizationProvider.cs
- ResourcePermissionBase.cs
- AppSettingsExpressionEditor.cs
- SQLMembershipProvider.cs
- EncoderExceptionFallback.cs
- JsonCollectionDataContract.cs
- Compilation.cs
- Bits.cs
- SqlMetaData.cs
- GroupBox.cs
- XPathNodePointer.cs
- NavigationPropertyEmitter.cs
- LinqDataSourceHelper.cs
- RowType.cs
- AutoResetEvent.cs
- StrongName.cs
- TokenFactoryBase.cs
- CurrentChangingEventManager.cs
- SiteMapNodeItem.cs
- ReservationNotFoundException.cs
- FormatterServicesNoSerializableCheck.cs
- TargetParameterCountException.cs
- QueryOptionExpression.cs