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
- XmlSerializerVersionAttribute.cs
- BidOverLoads.cs
- MarkupExtensionParser.cs
- Vector3D.cs
- counter.cs
- AsyncOperation.cs
- DataGridViewImageCell.cs
- DefinitionUpdate.cs
- Fonts.cs
- UserPreferenceChangedEventArgs.cs
- EllipseGeometry.cs
- GenerateScriptTypeAttribute.cs
- VisualCollection.cs
- ExpandedProjectionNode.cs
- CalendarDateChangedEventArgs.cs
- EmbossBitmapEffect.cs
- ControlCommandSet.cs
- EntitySqlQueryBuilder.cs
- CookieProtection.cs
- PropertyManager.cs
- ScriptControlManager.cs
- CodeExpressionStatement.cs
- XmlSchemaException.cs
- XpsColorContext.cs
- SqlBulkCopy.cs
- InvokeSchedule.cs
- StylusLogic.cs
- BaseParser.cs
- RunInstallerAttribute.cs
- UrlMappingsSection.cs
- LoginCancelEventArgs.cs
- StateValidator.cs
- CompilerError.cs
- PersonalizableTypeEntry.cs
- ProviderUtil.cs
- ManipulationStartingEventArgs.cs
- UnauthorizedAccessException.cs
- ActivitySurrogateSelector.cs
- ThreadAttributes.cs
- WCFBuildProvider.cs
- XXXOnTypeBuilderInstantiation.cs
- VersionValidator.cs
- MouseBinding.cs
- CheckBoxBaseAdapter.cs
- MtomMessageEncoder.cs
- SchemaNames.cs
- PointAnimationUsingKeyFrames.cs
- DynamicPropertyHolder.cs
- FixedBufferAttribute.cs
- GlobalizationAssembly.cs
- TableColumn.cs
- ContentElementAutomationPeer.cs
- StringFunctions.cs
- FromReply.cs
- HttpCachePolicyElement.cs
- _HelperAsyncResults.cs
- Itemizer.cs
- DriveInfo.cs
- Keyboard.cs
- SQLChars.cs
- X500Name.cs
- MsmqAppDomainProtocolHandler.cs
- PkcsUtils.cs
- ItemsChangedEventArgs.cs
- TraceFilter.cs
- FunctionQuery.cs
- httpstaticobjectscollection.cs
- TreeNodeCollection.cs
- JsonDeserializer.cs
- HierarchicalDataBoundControl.cs
- LinkButton.cs
- CommandLibraryHelper.cs
- BulletedList.cs
- IndependentlyAnimatedPropertyMetadata.cs
- IntSecurity.cs
- DetailsViewDeleteEventArgs.cs
- ComponentTray.cs
- xdrvalidator.cs
- DataStreams.cs
- DesignerLinkAdapter.cs
- CodeVariableReferenceExpression.cs
- ZipPackagePart.cs
- MSAAWinEventWrap.cs
- SqlDataSourceCache.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- XmlDigitalSignatureProcessor.cs
- Thumb.cs
- Main.cs
- AccessDataSource.cs
- TextFormattingConverter.cs
- DetailsViewPageEventArgs.cs
- ResXDataNode.cs
- HMACSHA384.cs
- BitmapEffectDrawing.cs
- ComponentCollection.cs
- ConnectionOrientedTransportBindingElement.cs
- VerificationAttribute.cs
- DataGridParentRows.cs
- CellLabel.cs
- MenuItemStyleCollection.cs