Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- XmlSchemaNotation.cs
- ProfileService.cs
- FixedSOMTable.cs
- PackageRelationship.cs
- MulticastOption.cs
- WindowsRichEditRange.cs
- SplayTreeNode.cs
- DynamicPropertyHolder.cs
- QueryGenerator.cs
- EditorAttribute.cs
- AssemblyCollection.cs
- WebExceptionStatus.cs
- KeyGestureValueSerializer.cs
- ping.cs
- RewritingSimplifier.cs
- CryptoStream.cs
- PropertyNames.cs
- CryptoProvider.cs
- FtpWebRequest.cs
- ExtractCollection.cs
- EventLogReader.cs
- ExclusiveNamedPipeTransportManager.cs
- KeyPullup.cs
- ResourceDescriptionAttribute.cs
- DataServiceContext.cs
- DbBuffer.cs
- GridItemProviderWrapper.cs
- WebBrowserNavigatedEventHandler.cs
- DataGridCellInfo.cs
- DropShadowEffect.cs
- SqlBulkCopyColumnMappingCollection.cs
- OutputCacheProviderCollection.cs
- SelectedDatesCollection.cs
- ItemsControlAutomationPeer.cs
- Pts.cs
- Convert.cs
- IdnElement.cs
- GenericRootAutomationPeer.cs
- ExpressionEditorSheet.cs
- TileBrush.cs
- JournalEntryListConverter.cs
- altserialization.cs
- Exceptions.cs
- DataSourceConverter.cs
- BulletedList.cs
- VisualStyleElement.cs
- DiagnosticTrace.cs
- StyleSheetDesigner.cs
- NamespaceEmitter.cs
- UIElementHelper.cs
- ChildDocumentBlock.cs
- RadioButton.cs
- ComPlusTypeValidator.cs
- StatusBarItemAutomationPeer.cs
- TableProviderWrapper.cs
- UnsafeCollabNativeMethods.cs
- ExpressionBuilder.cs
- FixedDocumentPaginator.cs
- x509utils.cs
- UnderstoodHeaders.cs
- mediaclock.cs
- FileIOPermission.cs
- RuntimeWrappedException.cs
- _UriSyntax.cs
- ObjectDataProvider.cs
- RightsController.cs
- XmlSchemaExternal.cs
- EditorZoneBase.cs
- RegexCharClass.cs
- InstanceOwnerException.cs
- TraceInternal.cs
- ContextQuery.cs
- GlobalizationAssembly.cs
- Dictionary.cs
- PenLineCapValidation.cs
- ArraySortHelper.cs
- ToolStripLabel.cs
- Control.cs
- QueryCacheKey.cs
- SiteMap.cs
- HttpConfigurationSystem.cs
- DirectionalLight.cs
- CqlParser.cs
- WebException.cs
- TemplateNameScope.cs
- DBSchemaRow.cs
- RadioButtonRenderer.cs
- ListBoxDesigner.cs
- PointConverter.cs
- UnicodeEncoding.cs
- XPathBinder.cs
- XmlMapping.cs
- QilList.cs
- ImageFormat.cs
- CmsInterop.cs
- MailSettingsSection.cs
- DocumentGridContextMenu.cs
- ExpressionPrefixAttribute.cs
- EventTrigger.cs
- MimeParameter.cs