Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / Tag.cs / 1 / Tag.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.InteropServices; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for SemanticTag. /// #if DEBUG [DebuggerDisplay ("{_be.Symbols.FromOffset (_cfgTag._nameOffset == 0 ? _cfgTag._valueOffset : _cfgTag._nameOffset)}")] #endif internal sealed class Tag : IComparable{ //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal Tag (Tag tag) { _be = tag._be; _cfgTag = tag._cfgTag; } internal Tag (Backend be, CfgSemanticTag cfgTag) { _be = be; _cfgTag = cfgTag; } internal Tag (Backend be, CfgGrammar.CfgProperty property) { _be = be; _cfgTag = new CfgSemanticTag (be.Symbols, property); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods #region IComparable Interface implementation int IComparable .CompareTo (Tag tag) { return (int) _cfgTag.ArcIndex - (int) tag._cfgTag.ArcIndex; } #endregion internal void Serialize (StreamMarshaler streamBuffer) { streamBuffer.WriteStream (_cfgTag); } #endregion //******************************************************************** // // Internal Fields // //******************************************************************** #region Internal Fields internal CfgSemanticTag _cfgTag = new CfgSemanticTag (); internal Backend _be; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.InteropServices; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for SemanticTag. /// #if DEBUG [DebuggerDisplay ("{_be.Symbols.FromOffset (_cfgTag._nameOffset == 0 ? _cfgTag._valueOffset : _cfgTag._nameOffset)}")] #endif internal sealed class Tag : IComparable{ //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal Tag (Tag tag) { _be = tag._be; _cfgTag = tag._cfgTag; } internal Tag (Backend be, CfgSemanticTag cfgTag) { _be = be; _cfgTag = cfgTag; } internal Tag (Backend be, CfgGrammar.CfgProperty property) { _be = be; _cfgTag = new CfgSemanticTag (be.Symbols, property); } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods #region IComparable Interface implementation int IComparable .CompareTo (Tag tag) { return (int) _cfgTag.ArcIndex - (int) tag._cfgTag.ArcIndex; } #endregion internal void Serialize (StreamMarshaler streamBuffer) { streamBuffer.WriteStream (_cfgTag); } #endregion //******************************************************************** // // Internal Fields // //******************************************************************** #region Internal Fields internal CfgSemanticTag _cfgTag = new CfgSemanticTag (); internal Backend _be; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventPrivateKey.cs
- PropertyGridView.cs
- ListBoxItemWrapperAutomationPeer.cs
- SafeRightsManagementQueryHandle.cs
- Int32RectConverter.cs
- DecoderBestFitFallback.cs
- ErrorHandler.cs
- StrokeDescriptor.cs
- DefinitionBase.cs
- Hex.cs
- DNS.cs
- InheritablePropertyChangeInfo.cs
- Point4D.cs
- EventItfInfo.cs
- ActivityBindForm.cs
- ChannelSinkStacks.cs
- ConfigXmlCDataSection.cs
- ProjectionCamera.cs
- DataBindingHandlerAttribute.cs
- XmlUnspecifiedAttribute.cs
- ErrorEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- HashCodeCombiner.cs
- WSFederationHttpBindingElement.cs
- WaitingCursor.cs
- StaticResourceExtension.cs
- SQLUtility.cs
- ChangePasswordDesigner.cs
- TargetParameterCountException.cs
- ConnectionPoint.cs
- TextContainerChangedEventArgs.cs
- InputScopeManager.cs
- RoutedEventConverter.cs
- ToolBarButtonClickEvent.cs
- SelectionEditingBehavior.cs
- WhitespaceRuleReader.cs
- DbDeleteCommandTree.cs
- MbpInfo.cs
- ObjectStateFormatter.cs
- Converter.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CustomWebEventKey.cs
- XmlReader.cs
- HttpPostClientProtocol.cs
- EdmValidator.cs
- XPathAncestorIterator.cs
- ErrorHandler.cs
- CodePageUtils.cs
- SmiEventSink_Default.cs
- ChannelReliableSession.cs
- SqlGenericUtil.cs
- ObjectDataSourceStatusEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- UniqueEventHelper.cs
- PageRequestManager.cs
- ComponentChangedEvent.cs
- GiveFeedbackEventArgs.cs
- MemoryPressure.cs
- BaseCollection.cs
- RoutingBehavior.cs
- DesignerAttribute.cs
- SchemaSetCompiler.cs
- PageAsyncTask.cs
- HtmlInputFile.cs
- dataSvcMapFileLoader.cs
- DocComment.cs
- MessageQueuePermission.cs
- RenderCapability.cs
- EntityViewContainer.cs
- Primitive.cs
- HMACSHA1.cs
- TextRangeBase.cs
- MenuBase.cs
- DataGridViewRowsAddedEventArgs.cs
- PersonalizationEntry.cs
- DescendantQuery.cs
- SingleSelectRootGridEntry.cs
- dbdatarecord.cs
- LinqToSqlWrapper.cs
- DynamicPropertyReader.cs
- SecurityContext.cs
- BaseDataBoundControl.cs
- HostedHttpContext.cs
- DocobjHost.cs
- SrgsRule.cs
- DelegateBodyWriter.cs
- CodeGotoStatement.cs
- mongolianshape.cs
- FloaterBaseParaClient.cs
- AlternateView.cs
- TemplateControl.cs
- FixedSOMPageConstructor.cs
- ItemsPanelTemplate.cs
- sqlser.cs
- MessageDescription.cs
- LightweightCodeGenerator.cs
- TextMetrics.cs
- ZipFileInfo.cs
- InvalidDataException.cs
- ObjectAssociationEndMapping.cs