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
- ToolStrip.cs
- XmlUTF8TextWriter.cs
- StringHelper.cs
- RectIndependentAnimationStorage.cs
- RuntimeConfigLKG.cs
- SchemaCollectionPreprocessor.cs
- BuildProviderCollection.cs
- ErrorTableItemStyle.cs
- FtpWebRequest.cs
- EditorAttribute.cs
- PolyBezierSegment.cs
- SqlVisitor.cs
- AdPostCacheSubstitution.cs
- ColorPalette.cs
- LocalBuilder.cs
- CriticalExceptions.cs
- Operator.cs
- storagemappingitemcollection.viewdictionary.cs
- Privilege.cs
- OperandQuery.cs
- FocusWithinProperty.cs
- AsyncContentLoadedEventArgs.cs
- Latin1Encoding.cs
- WSHttpTransportSecurityElement.cs
- EdmConstants.cs
- MethodCallConverter.cs
- EqualityComparer.cs
- TextElementEnumerator.cs
- ToolboxBitmapAttribute.cs
- PrePostDescendentsWalker.cs
- NamespaceEmitter.cs
- ModelUIElement3D.cs
- RelationalExpressions.cs
- DriveInfo.cs
- SiteMapDataSourceDesigner.cs
- HttpStreams.cs
- QuaternionIndependentAnimationStorage.cs
- BufferManager.cs
- EventSinkActivityDesigner.cs
- StateRuntime.cs
- ObjectItemCachedAssemblyLoader.cs
- Accessors.cs
- GraphicsPathIterator.cs
- ChannelSinkStacks.cs
- WebServiceTypeData.cs
- SqlRemoveConstantOrderBy.cs
- DbConnectionClosed.cs
- LogSwitch.cs
- EntityDataSourceDesigner.cs
- SocketCache.cs
- OdbcParameterCollection.cs
- ColumnReorderedEventArgs.cs
- EventLogEntryCollection.cs
- HighContrastHelper.cs
- DataSysAttribute.cs
- DbConnectionPoolCounters.cs
- GenericWebPart.cs
- WsatServiceAddress.cs
- XamlVector3DCollectionSerializer.cs
- GridErrorDlg.cs
- DataGridViewCell.cs
- EdmItemCollection.cs
- BuildProviderUtils.cs
- SeverityFilter.cs
- WebEvents.cs
- ProtocolsConfigurationEntry.cs
- PointAnimation.cs
- Geometry3D.cs
- EpmSourceTree.cs
- NGCSerializationManagerAsync.cs
- WindowVisualStateTracker.cs
- DataGridViewCellValidatingEventArgs.cs
- Rule.cs
- Site.cs
- Privilege.cs
- ClassHandlersStore.cs
- CancelRequestedRecord.cs
- PolicyChain.cs
- ManagementNamedValueCollection.cs
- SqlProfileProvider.cs
- Material.cs
- DesignerFrame.cs
- GeneralTransform3DTo2D.cs
- StorageMappingItemLoader.cs
- AnnotationService.cs
- FrameworkElementAutomationPeer.cs
- TableParagraph.cs
- OleDbParameterCollection.cs
- _Events.cs
- ContractMapping.cs
- BmpBitmapDecoder.cs
- NumericExpr.cs
- PrimitiveType.cs
- EFColumnProvider.cs
- DefaultAuthorizationContext.cs
- DataBoundControlAdapter.cs
- BoolExpressionVisitors.cs
- NonSerializedAttribute.cs
- HtmlSelectionListAdapter.cs
- SessionPageStateSection.cs