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
- AdapterUtil.cs
- EncodingStreamWrapper.cs
- DataGridViewDataErrorEventArgs.cs
- TextBox.cs
- HtmlControl.cs
- NetworkInformationPermission.cs
- SocketManager.cs
- LambdaCompiler.Expressions.cs
- ExpressionBuilderCollection.cs
- Stackframe.cs
- CodeTryCatchFinallyStatement.cs
- SemanticValue.cs
- PKCS1MaskGenerationMethod.cs
- PaginationProgressEventArgs.cs
- OuterGlowBitmapEffect.cs
- ResXResourceSet.cs
- CodeCastExpression.cs
- SlipBehavior.cs
- CompilerInfo.cs
- ListenerTraceUtility.cs
- SystemWebCachingSectionGroup.cs
- WindowsTokenRoleProvider.cs
- FontStyles.cs
- SimpleWorkerRequest.cs
- WinEventHandler.cs
- RtfToken.cs
- AttributeTableBuilder.cs
- BufferedStream.cs
- ElementProxy.cs
- _BaseOverlappedAsyncResult.cs
- ValueSerializer.cs
- TypedAsyncResult.cs
- cache.cs
- HttpInputStream.cs
- FillBehavior.cs
- EntityDataSourceQueryBuilder.cs
- Point3DAnimationBase.cs
- BindingContext.cs
- Types.cs
- newinstructionaction.cs
- DesignTimeHTMLTextWriter.cs
- EntityAdapter.cs
- CodeRemoveEventStatement.cs
- ComPlusDiagnosticTraceRecords.cs
- XmlDomTextWriter.cs
- OutputScopeManager.cs
- EncryptedReference.cs
- WebBrowserEvent.cs
- GlyphTypeface.cs
- BaseValidatorDesigner.cs
- StringHelper.cs
- FlowLayoutPanel.cs
- EmptyControlCollection.cs
- IsolatedStorage.cs
- VisualBasicExpressionConverter.cs
- Int32Converter.cs
- GeometryGroup.cs
- QilChoice.cs
- sortedlist.cs
- DataGridColumnEventArgs.cs
- Path.cs
- QueryContinueDragEvent.cs
- EnumUnknown.cs
- ColumnWidthChangedEvent.cs
- SessionStateModule.cs
- AnnotationAuthorChangedEventArgs.cs
- Marshal.cs
- WebEventCodes.cs
- InkCanvasFeedbackAdorner.cs
- smtppermission.cs
- TemplateBindingExpression.cs
- Membership.cs
- TableLayout.cs
- PageParser.cs
- CssStyleCollection.cs
- ContentType.cs
- TaiwanCalendar.cs
- MetadataItemSerializer.cs
- XmlSchemaImporter.cs
- BitmapMetadataBlob.cs
- StringSorter.cs
- TransactionsSectionGroup.cs
- CodeArgumentReferenceExpression.cs
- TextAnchor.cs
- CursorConverter.cs
- FunctionCommandText.cs
- DefaultDiscoveryServiceExtension.cs
- COM2EnumConverter.cs
- SqlCachedBuffer.cs
- ListParagraph.cs
- OrderingExpression.cs
- BrowserCapabilitiesFactory.cs
- XmlComment.cs
- DeferredSelectedIndexReference.cs
- ClientSideProviderDescription.cs
- DeviceFiltersSection.cs
- WebUtil.cs
- BufferModesCollection.cs
- HtmlEmptyTagControlBuilder.cs
- OracleEncoding.cs