Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StreamReader.cs
- PeerInvitationResponse.cs
- SemanticAnalyzer.cs
- CancellationTokenRegistration.cs
- EventLogTraceListener.cs
- ParentUndoUnit.cs
- Rule.cs
- ApplicationFileParser.cs
- JoinElimination.cs
- HttpResponseHeader.cs
- DataSourceXmlSerializer.cs
- FixedSOMTextRun.cs
- PathGradientBrush.cs
- JsonClassDataContract.cs
- UnmanagedMemoryStream.cs
- SymDocumentType.cs
- XmlSchemaObjectCollection.cs
- MeasureItemEvent.cs
- VScrollProperties.cs
- DataBindingExpressionBuilder.cs
- XmlArrayItemAttribute.cs
- SafeRsaProviderHandle.cs
- StrokeSerializer.cs
- _ShellExpression.cs
- CultureSpecificStringDictionary.cs
- FormattedText.cs
- FrameworkContextData.cs
- SapiRecoContext.cs
- _RequestCacheProtocol.cs
- DebugInfoGenerator.cs
- SchemaNotation.cs
- InputLanguageEventArgs.cs
- Parameter.cs
- TextRangeProviderWrapper.cs
- Screen.cs
- InternalCache.cs
- GZipObjectSerializer.cs
- StateRuntime.cs
- WebSysDescriptionAttribute.cs
- TextPatternIdentifiers.cs
- uribuilder.cs
- _HeaderInfo.cs
- BindableAttribute.cs
- HttpDictionary.cs
- DbSetClause.cs
- TabItem.cs
- _UriTypeConverter.cs
- ClassicBorderDecorator.cs
- SqlInternalConnectionTds.cs
- SqlDataSourceSelectingEventArgs.cs
- NavigationWindow.cs
- CompiledQueryCacheEntry.cs
- AsymmetricAlgorithm.cs
- UnauthorizedWebPart.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ActivityPreviewDesigner.cs
- Transform.cs
- PenLineCapValidation.cs
- ScriptControl.cs
- CodeRemoveEventStatement.cs
- EllipseGeometry.cs
- VisualStyleElement.cs
- DataControlButton.cs
- AttributeData.cs
- ImageAutomationPeer.cs
- OwnerDrawPropertyBag.cs
- GatewayIPAddressInformationCollection.cs
- LinkConverter.cs
- ScopelessEnumAttribute.cs
- ChannelServices.cs
- UnregisterInfo.cs
- safemediahandle.cs
- GeometryCombineModeValidation.cs
- AnnotationAuthorChangedEventArgs.cs
- LiteralText.cs
- RegionInfo.cs
- DisplayInformation.cs
- MouseEvent.cs
- XmlKeywords.cs
- MasterPageParser.cs
- SiteMapPath.cs
- CustomAttribute.cs
- PolicyValidationException.cs
- GridViewSortEventArgs.cs
- PermissionSet.cs
- HttpProcessUtility.cs
- PerformanceCountersElement.cs
- ToolStripAdornerWindowService.cs
- ClientBuildManager.cs
- SRGSCompiler.cs
- ResolveMatchesCD1.cs
- SQLBoolean.cs
- NotCondition.cs
- SapiInterop.cs
- SyndicationSerializer.cs
- ModuleElement.cs
- CmsUtils.cs
- TokenizerHelper.cs
- StyleXamlParser.cs
- WindowInteropHelper.cs