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
- DbgUtil.cs
- ArgIterator.cs
- XmlSchemaAll.cs
- FormsAuthenticationEventArgs.cs
- SafeNativeMethods.cs
- ConfigurationValue.cs
- DependencyObjectProvider.cs
- ToolboxBitmapAttribute.cs
- sitestring.cs
- FileAuthorizationModule.cs
- BlurBitmapEffect.cs
- _AcceptOverlappedAsyncResult.cs
- ContentElementCollection.cs
- CancellationToken.cs
- GacUtil.cs
- GenerateScriptTypeAttribute.cs
- SourceInterpreter.cs
- SqlUDTStorage.cs
- FixedPageProcessor.cs
- BuildDependencySet.cs
- SiblingIterators.cs
- MetadataItem.cs
- MessageContractImporter.cs
- Base64Stream.cs
- HierarchicalDataBoundControlAdapter.cs
- BookmarkNameHelper.cs
- InvokeGenerator.cs
- RecordManager.cs
- MarkupExtensionReturnTypeAttribute.cs
- MimeMapping.cs
- NotifyInputEventArgs.cs
- RemoteDebugger.cs
- SafeRightsManagementQueryHandle.cs
- CustomErrorCollection.cs
- Util.cs
- DataServiceQueryException.cs
- BamlTreeNode.cs
- ProfileEventArgs.cs
- DockAndAnchorLayout.cs
- RangeBaseAutomationPeer.cs
- FontFamily.cs
- PrimaryKeyTypeConverter.cs
- ReadOnlyDataSource.cs
- SubqueryTrackingVisitor.cs
- BookmarkEventArgs.cs
- ImageMap.cs
- SmiContextFactory.cs
- EventMappingSettingsCollection.cs
- SettingsPropertyIsReadOnlyException.cs
- StoreAnnotationsMap.cs
- NullReferenceException.cs
- XPathChildIterator.cs
- PropertyConverter.cs
- HashCryptoHandle.cs
- DataGridViewRowPostPaintEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- UdpAnnouncementEndpoint.cs
- ClientOptions.cs
- TemplateField.cs
- ToolStripSeparator.cs
- MemoryFailPoint.cs
- Buffer.cs
- XmlBindingWorker.cs
- X509InitiatorCertificateServiceElement.cs
- followingquery.cs
- AttributeQuery.cs
- DiagnosticTrace.cs
- ScriptServiceAttribute.cs
- TextFragmentEngine.cs
- Utilities.cs
- TimeIntervalCollection.cs
- ListView.cs
- DataColumnPropertyDescriptor.cs
- X509Utils.cs
- Imaging.cs
- QuotaThrottle.cs
- ReflectionUtil.cs
- MimeMapping.cs
- XpsFilter.cs
- MsmqInputChannelBase.cs
- XmlWriterSettings.cs
- DataSourceCacheDurationConverter.cs
- ObjectListFieldsPage.cs
- EDesignUtil.cs
- RelationshipConverter.cs
- ProgressPage.cs
- base64Transforms.cs
- ThreadInterruptedException.cs
- COM2ColorConverter.cs
- UniqueCodeIdentifierScope.cs
- BidPrivateBase.cs
- XmlDocumentSerializer.cs
- SimpleWebHandlerParser.cs
- ContractMapping.cs
- TreeView.cs
- DataBindEngine.cs
- EpmTargetTree.cs
- VisualStyleElement.cs
- DiscoveryClientReferences.cs
- MapPathBasedVirtualPathProvider.cs