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
- CharacterBuffer.cs
- PropVariant.cs
- XmlMapping.cs
- SqlDataRecord.cs
- TreeNodeStyleCollectionEditor.cs
- TextStore.cs
- StorageMappingItemLoader.cs
- RealProxy.cs
- DataListItem.cs
- WebBaseEventKeyComparer.cs
- TabletCollection.cs
- DBSqlParser.cs
- ProcessHost.cs
- ValueSerializerAttribute.cs
- SmiContextFactory.cs
- SoapExtensionStream.cs
- Panel.cs
- CodeDOMUtility.cs
- XPathDocumentBuilder.cs
- FormsAuthenticationUser.cs
- PropVariant.cs
- WebPartRestoreVerb.cs
- CatalogPart.cs
- DifferencingCollection.cs
- Int16Animation.cs
- TaskCanceledException.cs
- StaticFileHandler.cs
- WebPartDisplayModeCancelEventArgs.cs
- HtmlImage.cs
- VerificationAttribute.cs
- ScriptIgnoreAttribute.cs
- COM2ICategorizePropertiesHandler.cs
- TextEditorSelection.cs
- ProxyWebPartConnectionCollection.cs
- MetadataArtifactLoaderFile.cs
- TextFindEngine.cs
- InfoCardSymmetricAlgorithm.cs
- TemplateBaseAction.cs
- SpecularMaterial.cs
- OracleEncoding.cs
- XPathPatternBuilder.cs
- documentsequencetextview.cs
- RemoteAsymmetricSignatureFormatter.cs
- ConstrainedDataObject.cs
- Int64Converter.cs
- Publisher.cs
- FacetValues.cs
- UpdateRecord.cs
- MultiTrigger.cs
- InstanceData.cs
- PathSegment.cs
- RoleManagerEventArgs.cs
- CompoundFileReference.cs
- TypeNameConverter.cs
- EasingKeyFrames.cs
- WebPartZone.cs
- SiteMapNodeItemEventArgs.cs
- GlyphShapingProperties.cs
- ToolStripSeparatorRenderEventArgs.cs
- HwndStylusInputProvider.cs
- VerticalAlignConverter.cs
- DifferencingCollection.cs
- ProcessStartInfo.cs
- ISSmlParser.cs
- RawStylusInputCustomData.cs
- HostedController.cs
- MetadataItem_Static.cs
- ServerValidateEventArgs.cs
- OdbcConnectionString.cs
- RectAnimationClockResource.cs
- DispatcherEventArgs.cs
- HtmlTableRowCollection.cs
- OpCodes.cs
- ServerReliableChannelBinder.cs
- CompressionTransform.cs
- ServicesExceptionNotHandledEventArgs.cs
- Page.cs
- GridViewColumnHeader.cs
- DbConnectionPool.cs
- DashStyle.cs
- CompilationSection.cs
- TableItemPattern.cs
- InkCanvasSelectionAdorner.cs
- KeyBinding.cs
- SqlExpander.cs
- StylusButtonEventArgs.cs
- StateWorkerRequest.cs
- ResourceExpressionEditor.cs
- ISAPIApplicationHost.cs
- SelfIssuedAuthProofToken.cs
- XmlDomTextWriter.cs
- __ComObject.cs
- WindowsListViewItemCheckBox.cs
- ScrollableControl.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlUrlResolver.cs
- WindowsEditBoxRange.cs
- BitVector32.cs
- MatrixTransform3D.cs
- EncoderParameter.cs