Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / GrammarBuilding / TagElement.cs / 1 / TagElement.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; 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 TagElement : BuilderElements { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// /// /// internal TagElement (object value) { _value = value; } ////// /// /// /// internal TagElement (GrammarBuilderBase builder, object value) : this (value) { Add (builder); } ////// /// /// /// internal TagElement (GrammarBuilder builder, object value) : this (value) { Add (builder); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.Equals"]/*' /> public override bool Equals (object obj) { TagElement refObj = obj as TagElement; if (refObj == null) { return false; } if (!base.Equals (obj)) { return false; } return _value.Equals (refObj._value); } /// TODOC <_include file='doc\SpeechAudioFormatInfo.uex' path='docs/doc[@for="SpeechAudioFormatInfo.GetHashCode"]/*' /> public override int GetHashCode () { return base.GetHashCode (); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************** #region Internal Methods ////// /// ///internal override GrammarBuilderBase Clone () { TagElement tag = new TagElement (_value); tag.CloneItems (this); return tag; } /// /// /// /// /// /// /// ///internal override IElement CreateElement (IElementFactory elementFactory, IElement parent, IRule rule, IdentifierCollection ruleIds) { // Create the children elements IItem item = parent as IItem; if (item != null) { CreateChildrenElements (elementFactory, item, rule, ruleIds); } else { if (parent == rule) { CreateChildrenElements (elementFactory, rule, ruleIds); } else { System.Diagnostics.Debug.Assert (false); } } // Create the tag element at the end only if there were some children IPropertyTag tag = elementFactory.CreatePropertyTag (parent); tag.NameValue (parent, null, _value); return tag; } #endregion //******************************************************************* // // Internal Properties // //******************************************************************** #region Internal Properties override internal string DebugSummary { get { return base.DebugSummary + " {" + _value + "}"; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************* #region Private Fields private readonly object _value; #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
- SmiEventSink_DeferedProcessing.cs
- SQLGuidStorage.cs
- InfoCardServiceInstallComponent.cs
- URLMembershipCondition.cs
- NativeRecognizer.cs
- SafeLibraryHandle.cs
- SafeNativeMethods.cs
- ViewBase.cs
- COM2EnumConverter.cs
- FixedTextContainer.cs
- HtmlButton.cs
- ConfigurationStrings.cs
- SystemColors.cs
- BaseCAMarshaler.cs
- TraceProvider.cs
- ContextBase.cs
- JoinSymbol.cs
- HttpFileCollection.cs
- CompositeCollectionView.cs
- DbException.cs
- VisualStyleInformation.cs
- AutomationPatternInfo.cs
- ListViewHitTestInfo.cs
- ErrorFormatter.cs
- SelectedGridItemChangedEvent.cs
- BooleanFunctions.cs
- TextAnchor.cs
- BasicHttpMessageSecurityElement.cs
- WindowsFont.cs
- FontFamilyValueSerializer.cs
- validationstate.cs
- VSWCFServiceContractGenerator.cs
- Instrumentation.cs
- ListBoxItemAutomationPeer.cs
- Propagator.Evaluator.cs
- TextDecorationUnitValidation.cs
- LicenseManager.cs
- PropertyMap.cs
- FontSizeConverter.cs
- PerfCounterSection.cs
- GetWinFXPath.cs
- ArgumentNullException.cs
- RefExpr.cs
- NoPersistHandle.cs
- ImageDrawing.cs
- TypeLibConverter.cs
- SQLInt32.cs
- AsymmetricSignatureDeformatter.cs
- Timer.cs
- SoapReflectionImporter.cs
- ProjectionCamera.cs
- Blend.cs
- SystemFonts.cs
- MdiWindowListItemConverter.cs
- RequestStatusBarUpdateEventArgs.cs
- QualificationDataItem.cs
- EdmToObjectNamespaceMap.cs
- LockedHandleGlyph.cs
- ProcessManager.cs
- UrlRoutingModule.cs
- ProfileService.cs
- DataConnectionHelper.cs
- StreamBodyWriter.cs
- EditingContext.cs
- TranslateTransform3D.cs
- AppDomainInstanceProvider.cs
- BooleanFunctions.cs
- ValueProviderWrapper.cs
- PolicyManager.cs
- SchemaNotation.cs
- CipherData.cs
- ReferencedType.cs
- SpoolingTask.cs
- SQLUtility.cs
- BufferModesCollection.cs
- Identifier.cs
- PopupRootAutomationPeer.cs
- ResourceExpression.cs
- DataTableMappingCollection.cs
- SiteMapNode.cs
- WebRequestModuleElementCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- DiscoveryInnerClientManaged11.cs
- ListViewItemSelectionChangedEvent.cs
- QueryAccessibilityHelpEvent.cs
- NativeMethods.cs
- CodeMethodInvokeExpression.cs
- GroupByExpressionRewriter.cs
- ReadOnlyPermissionSet.cs
- HttpProxyCredentialType.cs
- ResourceExpression.cs
- WebPartChrome.cs
- DoubleAnimationBase.cs
- IdentityModelDictionary.cs
- StrongTypingException.cs
- SingleAnimationBase.cs
- XmlSchemaAttributeGroupRef.cs
- DuplicateWaitObjectException.cs
- AQNBuilder.cs
- Matrix.cs