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
- FormViewDeletedEventArgs.cs
- DeclarativeConditionsCollection.cs
- MultiAsyncResult.cs
- MimeMapping.cs
- DataControlFieldsEditor.cs
- Typography.cs
- PermissionListSet.cs
- ButtonBaseAutomationPeer.cs
- DiscriminatorMap.cs
- WebBrowserSiteBase.cs
- CodeTypeReference.cs
- path.cs
- ToolStripStatusLabel.cs
- PlatformNotSupportedException.cs
- WindowsRichEdit.cs
- documentsequencetextview.cs
- SchemaTypeEmitter.cs
- SQLCharsStorage.cs
- IPAddressCollection.cs
- SizeF.cs
- FunctionUpdateCommand.cs
- StylusButtonCollection.cs
- InvalidOperationException.cs
- WebPartEditorCancelVerb.cs
- WorkflowApplicationCompletedException.cs
- FormatException.cs
- securitycriticaldataClass.cs
- LoginUtil.cs
- DataControlPagerLinkButton.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DbReferenceCollection.cs
- DropShadowEffect.cs
- ToolStripItemImageRenderEventArgs.cs
- ISFTagAndGuidCache.cs
- MenuTracker.cs
- GridView.cs
- ResourceExpressionBuilder.cs
- SiteMapNodeItemEventArgs.cs
- ArrangedElement.cs
- SqlTypeSystemProvider.cs
- RouteParameter.cs
- DocumentGridPage.cs
- Point4DValueSerializer.cs
- DesignerListAdapter.cs
- xsdvalidator.cs
- LongTypeConverter.cs
- MessageEventSubscriptionService.cs
- IChannel.cs
- SqlVisitor.cs
- DesignerTransactionCloseEvent.cs
- WriterOutput.cs
- SecurityImpersonationBehavior.cs
- DesignerLoader.cs
- TriggerActionCollection.cs
- Method.cs
- EntityClassGenerator.cs
- ResetableIterator.cs
- Speller.cs
- CharStorage.cs
- ImageAttributes.cs
- ImpersonationContext.cs
- SessionEndingEventArgs.cs
- ProcessHostServerConfig.cs
- EntityStoreSchemaGenerator.cs
- DbConvert.cs
- Win32PrintDialog.cs
- SafeProcessHandle.cs
- LongValidatorAttribute.cs
- NativeMethods.cs
- CustomCategoryAttribute.cs
- SymbolMethod.cs
- JsonWriter.cs
- Compiler.cs
- DataGridColumnHeaderCollection.cs
- ScaleTransform3D.cs
- SocketException.cs
- JulianCalendar.cs
- MethodSet.cs
- ScriptControlDescriptor.cs
- TextTreeInsertUndoUnit.cs
- SerialStream.cs
- SQLMembershipProvider.cs
- StaticDataManager.cs
- StylusButtonEventArgs.cs
- Semaphore.cs
- PermissionSetEnumerator.cs
- Util.cs
- ListenDesigner.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HttpHandlerActionCollection.cs
- TextOnlyOutput.cs
- Splitter.cs
- _DigestClient.cs
- XmlObjectSerializerWriteContext.cs
- BrushValueSerializer.cs
- WorkflowInspectionServices.cs
- PenLineJoinValidation.cs
- EventBindingService.cs
- X509Chain.cs
- SHA384Managed.cs