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
- ToolStripItemRenderEventArgs.cs
- sqlinternaltransaction.cs
- TrustSection.cs
- ValueSerializerAttribute.cs
- QuerySetOp.cs
- KnownTypesHelper.cs
- ButtonBase.cs
- ComponentManagerBroker.cs
- UICuesEvent.cs
- PhysicalOps.cs
- PropertyConverter.cs
- ResourcePermissionBase.cs
- WebBrowserEvent.cs
- ObjectDataSource.cs
- Vertex.cs
- Vector.cs
- Command.cs
- ListDictionary.cs
- SharedDp.cs
- SEHException.cs
- OracleFactory.cs
- Camera.cs
- WindowsStartMenu.cs
- RectKeyFrameCollection.cs
- ObservableCollectionDefaultValueFactory.cs
- DocumentReferenceCollection.cs
- ColumnMapProcessor.cs
- ToolStripPanelRenderEventArgs.cs
- WindowsRegion.cs
- PropertyDescriptorCollection.cs
- GridViewRowEventArgs.cs
- MenuItemCollectionEditorDialog.cs
- Wildcard.cs
- XamlUtilities.cs
- XmlUtf8RawTextWriter.cs
- Encoder.cs
- LayoutManager.cs
- BindingOperations.cs
- ClientSettingsSection.cs
- WhitespaceRuleLookup.cs
- GridProviderWrapper.cs
- HtmlValidationSummaryAdapter.cs
- ResolveNextArgumentWorkItem.cs
- DoubleConverter.cs
- ExpressionLexer.cs
- AxWrapperGen.cs
- SqlServices.cs
- DrawListViewSubItemEventArgs.cs
- TextBoxView.cs
- DebugView.cs
- X509CertificateChain.cs
- TranslateTransform3D.cs
- DynamicObjectAccessor.cs
- EtwProvider.cs
- ModelPerspective.cs
- ConfigurationElementCollection.cs
- MenuItemBinding.cs
- FixedSOMTable.cs
- ContentPresenter.cs
- DocumentPage.cs
- ConfigXmlElement.cs
- RenderingEventArgs.cs
- NameValuePair.cs
- ProcessInputEventArgs.cs
- SHA512Managed.cs
- WindowsScrollBar.cs
- ConfigurationPropertyCollection.cs
- HttpHandlerAction.cs
- ISCIIEncoding.cs
- DefaultWorkflowLoaderService.cs
- SecurityDescriptor.cs
- CorrelationResolver.cs
- DesignerSerializationVisibilityAttribute.cs
- ImageCodecInfoPrivate.cs
- HostedImpersonationContext.cs
- XmlWellformedWriter.cs
- HTMLTextWriter.cs
- SubstitutionList.cs
- HttpApplicationStateBase.cs
- HtmlGenericControl.cs
- ArgumentOutOfRangeException.cs
- MemoryStream.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ReaderWriterLock.cs
- Volatile.cs
- MD5CryptoServiceProvider.cs
- TrackingAnnotationCollection.cs
- FileNameEditor.cs
- GridViewUpdatedEventArgs.cs
- validationstate.cs
- SEHException.cs
- ContextQuery.cs
- TextBlockAutomationPeer.cs
- ClientConfigurationSystem.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ChtmlPhoneCallAdapter.cs
- PerformanceCounterScope.cs
- HtmlWindowCollection.cs
- ListViewAutomationPeer.cs
- XPathDocumentNavigator.cs