Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / GrammarBuilding / OneOfElement.cs / 1 / OneOfElement.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Diagnostics; using System.Speech.Recognition; using System.Speech.Internal.SrgsParser; using System.Text; namespace System.Speech.Internal.GrammarBuilding { #if VSCOMPILE [DebuggerDisplay ("{DebugSummary}")] #endif internal sealed class OneOfElement : BuilderElements { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal OneOfElement () { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods ////// /// ///internal override GrammarBuilderBase Clone () { OneOfElement oneOf = new OneOfElement (); oneOf.CloneItems (this); return oneOf; } /// /// /// /// /// /// /// ///internal override IElement CreateElement (IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) { // Create and return the IOneOf representing the current object IOneOf oneOf = elementFactory.CreateOneOf (parent, rule); foreach (GrammarBuilderBase item in Items) { ItemElement newItem = item as ItemElement; if (newItem == null) { newItem = new ItemElement (item); } IItem element = (IItem) newItem.CreateElement (elementFactory, oneOf, rule, ruleIds); element.PostParse (oneOf); elementFactory.AddItem (oneOf, element); } return oneOf; } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties override internal string DebugSummary { get { StringBuilder sb = new StringBuilder (); foreach (GrammarBuilderBase item in Items) { if (sb.Length > 0) { sb.Append (","); } sb.Append (item.DebugSummary); } return "[" + sb.ToString () + "]"; } } #endregion } } // 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
- AssignDesigner.xaml.cs
- Converter.cs
- ValueUtilsSmi.cs
- SQLSingleStorage.cs
- CompiledQuery.cs
- CellNormalizer.cs
- SqlTypeSystemProvider.cs
- Pool.cs
- DirectionalLight.cs
- TextRangeEdit.cs
- GuidTagList.cs
- UpDownBase.cs
- MissingFieldException.cs
- QilParameter.cs
- SmtpFailedRecipientsException.cs
- StringPropertyBuilder.cs
- ListBox.cs
- WebAdminConfigurationHelper.cs
- SchemaElement.cs
- ListDictionary.cs
- SqlBinder.cs
- TypeNameConverter.cs
- Int64AnimationUsingKeyFrames.cs
- Dispatcher.cs
- HtmlTableCellCollection.cs
- InternalConfigHost.cs
- DiffuseMaterial.cs
- ProfileModule.cs
- TouchesOverProperty.cs
- ExpressionVisitorHelpers.cs
- ListViewPagedDataSource.cs
- columnmapfactory.cs
- TypeConverter.cs
- __Error.cs
- XmlValidatingReaderImpl.cs
- PerformanceCountersElement.cs
- SqlLiftIndependentRowExpressions.cs
- DispatcherFrame.cs
- FloaterBaseParagraph.cs
- UserValidatedEventArgs.cs
- ProfilePropertySettingsCollection.cs
- XmlValidatingReaderImpl.cs
- XmlSchemaGroupRef.cs
- versioninfo.cs
- TextureBrush.cs
- PerfCounters.cs
- ConnectionProviderAttribute.cs
- Section.cs
- BitmapCodecInfoInternal.cs
- Double.cs
- ExpressionWriter.cs
- GeneratedCodeAttribute.cs
- BCryptSafeHandles.cs
- MenuAdapter.cs
- InternalDuplexBindingElement.cs
- MetadataArtifactLoaderCompositeFile.cs
- DocumentSchemaValidator.cs
- AsymmetricKeyExchangeFormatter.cs
- AnnotationResourceCollection.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- FunctionOverloadResolver.cs
- WebControl.cs
- SequentialWorkflowRootDesigner.cs
- X509ClientCertificateAuthentication.cs
- XmlSchemaInferenceException.cs
- UserControlAutomationPeer.cs
- CompilerState.cs
- VolatileEnlistmentMultiplexing.cs
- UnsafeNativeMethods.cs
- PropertyTabChangedEvent.cs
- FunctionDetailsReader.cs
- NonClientArea.cs
- AppDomainGrammarProxy.cs
- WebEventCodes.cs
- LogicalExpr.cs
- SimpleTypeResolver.cs
- HtmlUtf8RawTextWriter.cs
- PartialList.cs
- UInt32.cs
- _TransmitFileOverlappedAsyncResult.cs
- MiniLockedBorderGlyph.cs
- CodeSubDirectory.cs
- TextComposition.cs
- DesignerHierarchicalDataSourceView.cs
- DataGrid.cs
- DataObject.cs
- SafeNativeMethodsOther.cs
- BindingBase.cs
- Italic.cs
- SplitterPanel.cs
- BufferModeSettings.cs
- RowTypePropertyElement.cs
- XPathDocumentIterator.cs
- CompilerWrapper.cs
- PageParser.cs
- LateBoundBitmapDecoder.cs
- InlinedAggregationOperatorEnumerator.cs
- Container.cs
- TrackBarRenderer.cs
- transactioncontext.cs