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
- CoreSwitches.cs
- ParameterExpression.cs
- DataGridColumnCollection.cs
- TransactionChannelListener.cs
- AudioBase.cs
- NameTable.cs
- ProcessInputEventArgs.cs
- WorkflowServiceNamespace.cs
- EntityPropertyMappingAttribute.cs
- FileAuthorizationModule.cs
- XsdDuration.cs
- PropertyHelper.cs
- WebBrowserProgressChangedEventHandler.cs
- DesignerCatalogPartChrome.cs
- FixedSchema.cs
- DataMisalignedException.cs
- Soap11ServerProtocol.cs
- SettingsSavedEventArgs.cs
- UnmanagedMarshal.cs
- CodeConditionStatement.cs
- CompilerState.cs
- MasterPageCodeDomTreeGenerator.cs
- GeometryCombineModeValidation.cs
- SchemaAttDef.cs
- SByteConverter.cs
- StreamHelper.cs
- SqlUdtInfo.cs
- EventWaitHandle.cs
- RadioButtonStandardAdapter.cs
- EventListener.cs
- SessionStateContainer.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WhitespaceReader.cs
- AsnEncodedData.cs
- NativeRightsManagementAPIsStructures.cs
- EncryptedKeyIdentifierClause.cs
- UndoEngine.cs
- FixedNode.cs
- OdbcEnvironmentHandle.cs
- XPathSelfQuery.cs
- Window.cs
- MemberBinding.cs
- WaveHeader.cs
- ProfileSection.cs
- ShapeTypeface.cs
- WriteableBitmap.cs
- ViewCellRelation.cs
- WsiProfilesElement.cs
- SpellerHighlightLayer.cs
- ExpressionContext.cs
- ToolboxComponentsCreatedEventArgs.cs
- HttpListenerRequest.cs
- Slider.cs
- DataKey.cs
- RestClientProxyHandler.cs
- TablePattern.cs
- EventWaitHandle.cs
- InternalControlCollection.cs
- GcHandle.cs
- FeatureSupport.cs
- SQLMoneyStorage.cs
- IteratorDescriptor.cs
- BuildProviderUtils.cs
- PageVisual.cs
- DesignerAttribute.cs
- CategoryValueConverter.cs
- RIPEMD160Managed.cs
- ContractTypeNameElement.cs
- ExpressionHelper.cs
- StructuralObject.cs
- SettingsPropertyIsReadOnlyException.cs
- ProviderConnectionPointCollection.cs
- activationcontext.cs
- DataTableNewRowEvent.cs
- LinqDataSourceHelper.cs
- AssemblyNameProxy.cs
- MediaContextNotificationWindow.cs
- CommandEventArgs.cs
- UrlPath.cs
- TypeUtil.cs
- HotSpotCollection.cs
- ClientScriptItemCollection.cs
- Rect3D.cs
- OperationAbortedException.cs
- XPathMultyIterator.cs
- WorkingDirectoryEditor.cs
- BulletedList.cs
- TimelineGroup.cs
- CheckoutException.cs
- VectorAnimation.cs
- VSWCFServiceContractGenerator.cs
- DiagnosticStrings.cs
- TextBoxDesigner.cs
- MembershipPasswordException.cs
- SmtpClient.cs
- BuildResult.cs
- CompoundFileStreamReference.cs
- OleDbFactory.cs
- LabelDesigner.cs
- ExpressionNormalizer.cs