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
- ValidationEventArgs.cs
- UnsafeNativeMethods.cs
- ComponentResourceKey.cs
- HttpListenerContext.cs
- XmlCodeExporter.cs
- WindowsStatusBar.cs
- BooleanKeyFrameCollection.cs
- PartialTrustHelpers.cs
- InfoCardHelper.cs
- DesignerSelectionListAdapter.cs
- ProviderIncompatibleException.cs
- DataGridViewDataConnection.cs
- Stack.cs
- XmlSchemaType.cs
- WmlPanelAdapter.cs
- httpstaticobjectscollection.cs
- Pen.cs
- Binding.cs
- EventTrigger.cs
- XmlTextAttribute.cs
- ConstantSlot.cs
- SystemInfo.cs
- TagPrefixAttribute.cs
- smtpconnection.cs
- ProbeMatchesCD1.cs
- XmlNodeChangedEventManager.cs
- DataGridRowsPresenter.cs
- Byte.cs
- ProtocolViolationException.cs
- BinaryReader.cs
- GenericPrincipal.cs
- BookmarkUndoUnit.cs
- StylusPointDescription.cs
- TrackingQueryElement.cs
- StreamResourceInfo.cs
- MessageLogTraceRecord.cs
- ElementsClipboardData.cs
- HttpRequestCacheValidator.cs
- Serialization.cs
- BufferedWebEventProvider.cs
- ContentElementCollection.cs
- QuadraticBezierSegment.cs
- WebBrowserBase.cs
- TypeUsageBuilder.cs
- WebPartDescription.cs
- Panel.cs
- BreakRecordTable.cs
- ColorInterpolationModeValidation.cs
- HyperLinkDataBindingHandler.cs
- WebEvents.cs
- DataBoundControlAdapter.cs
- AutomationPattern.cs
- ConnectionPointCookie.cs
- CalendarBlackoutDatesCollection.cs
- TextParaLineResult.cs
- HttpCapabilitiesSectionHandler.cs
- UIPermission.cs
- DataExpression.cs
- AutomationPatternInfo.cs
- RtfFormatStack.cs
- WebEvents.cs
- WindowHelperService.cs
- ProcessProtocolHandler.cs
- DataTableExtensions.cs
- NamedObject.cs
- X509Certificate.cs
- AliasExpr.cs
- dataobject.cs
- LazyTextWriterCreator.cs
- SQLStringStorage.cs
- AttributeData.cs
- DocumentAutomationPeer.cs
- WizardStepBase.cs
- __ConsoleStream.cs
- XmlSchemaDocumentation.cs
- DataGridTableCollection.cs
- XmlNamedNodeMap.cs
- WebConfigurationManager.cs
- ResourceDisplayNameAttribute.cs
- LZCodec.cs
- SerializationAttributes.cs
- DataBindingExpressionBuilder.cs
- DataPointer.cs
- ConfigurationManagerInternalFactory.cs
- DataSpaceManager.cs
- DataGridViewLinkColumn.cs
- TreeViewAutomationPeer.cs
- XmlQueryStaticData.cs
- FlowDocumentView.cs
- OleDbConnectionFactory.cs
- DecimalAnimationBase.cs
- DbReferenceCollection.cs
- RNGCryptoServiceProvider.cs
- OuterGlowBitmapEffect.cs
- ImportCatalogPart.cs
- FileVersionInfo.cs
- _KerberosClient.cs
- KnowledgeBase.cs
- ReadOnlyDictionary.cs
- CryptoStream.cs