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
- ButtonFieldBase.cs
- Rotation3DAnimation.cs
- IteratorFilter.cs
- GridSplitterAutomationPeer.cs
- Bidi.cs
- SqlDelegatedTransaction.cs
- PointCollectionValueSerializer.cs
- TimeoutStream.cs
- NamedServiceModelExtensionCollectionElement.cs
- HebrewNumber.cs
- BuildResultCache.cs
- ServiceDiscoveryElement.cs
- SimpleExpression.cs
- Run.cs
- WebConvert.cs
- KeyConstraint.cs
- CngAlgorithmGroup.cs
- DoubleAnimation.cs
- FixedNode.cs
- LogExtentCollection.cs
- QueryTask.cs
- ReadWriteSpinLock.cs
- RawUIStateInputReport.cs
- ParserHooks.cs
- WebAdminConfigurationHelper.cs
- Double.cs
- SafeFileMapViewHandle.cs
- IPHostEntry.cs
- XmlWrappingReader.cs
- EventManager.cs
- ResourceType.cs
- WindowsGraphics.cs
- SqlBuffer.cs
- DrawingVisual.cs
- LogLogRecordHeader.cs
- FolderBrowserDialog.cs
- TextTreeExtractElementUndoUnit.cs
- DataServiceConfiguration.cs
- COMException.cs
- SizeConverter.cs
- DataViewManager.cs
- DataAdapter.cs
- SecurityState.cs
- SqlStatistics.cs
- SharedPerformanceCounter.cs
- DataSourceSelectArguments.cs
- ShutDownListener.cs
- FaultDescriptionCollection.cs
- AQNBuilder.cs
- ViewValidator.cs
- TransportChannelFactory.cs
- ClientBuildManagerCallback.cs
- HtmlWindowCollection.cs
- SafeNativeMethods.cs
- SurrogateEncoder.cs
- XmlnsCache.cs
- GridView.cs
- EncoderFallback.cs
- ListSourceHelper.cs
- AndCondition.cs
- DBCommandBuilder.cs
- InitializerFacet.cs
- PropertyChangedEventArgs.cs
- RubberbandSelector.cs
- HandledMouseEvent.cs
- HandleValueEditor.cs
- commandenforcer.cs
- EncoderParameters.cs
- HotSpot.cs
- XmlSignificantWhitespace.cs
- WindowsSpinner.cs
- WebPartMenu.cs
- AuthenticationManager.cs
- LinqDataSourceInsertEventArgs.cs
- HtmlInputHidden.cs
- DataBindingCollection.cs
- _Events.cs
- EventListener.cs
- HashHelpers.cs
- BulletedList.cs
- SpStreamWrapper.cs
- TypeProvider.cs
- BezierSegment.cs
- LinkArea.cs
- ComplexTypeEmitter.cs
- ImpersonateTokenRef.cs
- Transform3D.cs
- SqlVisitor.cs
- PrinterUnitConvert.cs
- PlatformNotSupportedException.cs
- TemplateControlParser.cs
- Instrumentation.cs
- MenuItem.cs
- DBConcurrencyException.cs
- WebPartConnectionsCloseVerb.cs
- BrowserCapabilitiesCodeGenerator.cs
- FlagsAttribute.cs
- Vector3DCollectionValueSerializer.cs
- UriParserTemplates.cs
- MemoryMappedView.cs