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
- RichTextBox.cs
- MailAddress.cs
- DiagnosticsConfigurationHandler.cs
- DetailsViewInsertedEventArgs.cs
- EnumMember.cs
- Package.cs
- WebResourceAttribute.cs
- ReaderWriterLock.cs
- LogExtent.cs
- MsmqUri.cs
- ContentPresenter.cs
- ColorConvertedBitmapExtension.cs
- PerfService.cs
- ContractCodeDomInfo.cs
- RenderTargetBitmap.cs
- ScalarOps.cs
- XmlJsonReader.cs
- BufferedReadStream.cs
- ValueTypeFixupInfo.cs
- OutputCacheSection.cs
- SessionStateSection.cs
- FileLevelControlBuilderAttribute.cs
- CodeIterationStatement.cs
- ConfigurationStrings.cs
- PropertyValue.cs
- CodeChecksumPragma.cs
- ReachSerializerAsync.cs
- Ports.cs
- WindowInteractionStateTracker.cs
- ToolStripPanelCell.cs
- PrimitiveSchema.cs
- XamlHostingConfiguration.cs
- DesignerLinkAdapter.cs
- iisPickupDirectory.cs
- Control.cs
- DesignerCategoryAttribute.cs
- CharacterMetrics.cs
- SqlDataSourceFilteringEventArgs.cs
- TaiwanLunisolarCalendar.cs
- HitTestResult.cs
- XmlSchemaSimpleTypeUnion.cs
- InputLangChangeRequestEvent.cs
- XmlComment.cs
- ToolStripDropDownButton.cs
- SEHException.cs
- XmlReaderSettings.cs
- FixedStringLookup.cs
- ConvertBinder.cs
- ResourceReader.cs
- ImmutableCollection.cs
- MsmqTransportSecurity.cs
- DataGridTableCollection.cs
- CodeAccessPermission.cs
- WebAdminConfigurationHelper.cs
- UserControlParser.cs
- TextProviderWrapper.cs
- CharAnimationBase.cs
- HandledEventArgs.cs
- Hex.cs
- Evidence.cs
- MeshGeometry3D.cs
- ConfigurationStrings.cs
- MessageFault.cs
- StoreAnnotationsMap.cs
- EdmError.cs
- SystemDiagnosticsSection.cs
- IQueryable.cs
- UdpDiscoveryMessageFilter.cs
- XNodeSchemaApplier.cs
- FillErrorEventArgs.cs
- WindowsPen.cs
- Canvas.cs
- RequestSecurityTokenResponseCollection.cs
- CacheAxisQuery.cs
- UIElement.cs
- SafeUserTokenHandle.cs
- QilStrConcat.cs
- RawStylusInputReport.cs
- TypeSystem.cs
- TextModifierScope.cs
- TriState.cs
- PbrsForward.cs
- ToolStripDropDownClosedEventArgs.cs
- FormViewRow.cs
- WebControlParameterProxy.cs
- SmiMetaDataProperty.cs
- ViewKeyConstraint.cs
- QuaternionRotation3D.cs
- ReflectionUtil.cs
- LayoutUtils.cs
- DataContractAttribute.cs
- AtomEntry.cs
- CancelRequestedQuery.cs
- AdPostCacheSubstitution.cs
- ReadOnlyDataSourceView.cs
- HwndKeyboardInputProvider.cs
- SqlConnectionPoolProviderInfo.cs
- Size.cs
- TypeElement.cs
- TrackPoint.cs