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
- StylusPointDescription.cs
- TileBrush.cs
- Metadata.cs
- TextRangeProviderWrapper.cs
- ProjectionPathBuilder.cs
- TableNameAttribute.cs
- Calendar.cs
- Transform.cs
- DbProviderFactoriesConfigurationHandler.cs
- Expander.cs
- ConstructorNeedsTagAttribute.cs
- SiteMapHierarchicalDataSourceView.cs
- WMICapabilities.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DataGridItemCollection.cs
- SettingsPropertyWrongTypeException.cs
- MatrixAnimationUsingPath.cs
- IDQuery.cs
- SyndicationItemFormatter.cs
- CacheVirtualItemsEvent.cs
- Canvas.cs
- DataSourceHelper.cs
- HttpClientCertificate.cs
- FloaterParaClient.cs
- ChildChangedEventArgs.cs
- GroupBox.cs
- UpdateTranslator.cs
- Helpers.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- AsyncCompletedEventArgs.cs
- InputElement.cs
- MetaDataInfo.cs
- DeclarativeCatalogPart.cs
- XamlBrushSerializer.cs
- SectionInput.cs
- CodeDelegateInvokeExpression.cs
- EntityCollection.cs
- IsolatedStorageFilePermission.cs
- RuleRef.cs
- FontUnitConverter.cs
- FieldTemplateUserControl.cs
- UnsafeNativeMethods.cs
- CheckBox.cs
- MethodCallTranslator.cs
- SrgsElement.cs
- Activity.cs
- SQLBoolean.cs
- EntityDataSourceViewSchema.cs
- AuthenticationSection.cs
- OrderByLifter.cs
- FormConverter.cs
- SqlClientPermission.cs
- NetPipeSectionData.cs
- DeviceContexts.cs
- Timeline.cs
- ValidationRule.cs
- GeometryHitTestParameters.cs
- EncodingInfo.cs
- FloaterBaseParaClient.cs
- VisualStyleElement.cs
- UserControlCodeDomTreeGenerator.cs
- SplitterCancelEvent.cs
- StateDesigner.Helpers.cs
- hresults.cs
- PointCollection.cs
- PauseStoryboard.cs
- RefreshEventArgs.cs
- DBNull.cs
- SingleAnimationBase.cs
- DataObjectCopyingEventArgs.cs
- PageRanges.cs
- InputDevice.cs
- FormsIdentity.cs
- DesignerAttribute.cs
- WebConfigManager.cs
- MissingSatelliteAssemblyException.cs
- DynamicHyperLink.cs
- DataGridViewRowConverter.cs
- UiaCoreTypesApi.cs
- DataControlField.cs
- MarkupCompilePass2.cs
- DirectoryInfo.cs
- InvalidOperationException.cs
- StrokeNodeEnumerator.cs
- WebPartZoneCollection.cs
- UpdateProgress.cs
- MappingModelBuildProvider.cs
- Util.cs
- prefixendpointaddressmessagefilter.cs
- datacache.cs
- RuleSettings.cs
- BuilderPropertyEntry.cs
- SerializationException.cs
- FamilyCollection.cs
- COM2PropertyPageUITypeConverter.cs
- BaseConfigurationRecord.cs
- MemoryRecordBuffer.cs
- PropertyPushdownHelper.cs
- ToolStripSettings.cs
- Literal.cs