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
- XamlPathDataSerializer.cs
- ObjectStorage.cs
- XmlDocument.cs
- DBCommandBuilder.cs
- ReflectPropertyDescriptor.cs
- WindowsTokenRoleProvider.cs
- CacheAxisQuery.cs
- WebPartCancelEventArgs.cs
- _DomainName.cs
- WindowsListViewGroupHelper.cs
- SspiSecurityTokenParameters.cs
- VerificationException.cs
- DPTypeDescriptorContext.cs
- LayoutUtils.cs
- OfTypeExpression.cs
- UIElementParagraph.cs
- Stacktrace.cs
- RenamedEventArgs.cs
- RuntimeConfigLKG.cs
- BindingNavigatorDesigner.cs
- DataServiceOperationContext.cs
- SqlComparer.cs
- RawMouseInputReport.cs
- XmlSchemaAttributeGroup.cs
- LockedBorderGlyph.cs
- PerSessionInstanceContextProvider.cs
- DateTimeUtil.cs
- SymbolType.cs
- XmlAggregates.cs
- XmlChildEnumerator.cs
- FlowLayoutPanel.cs
- WebColorConverter.cs
- Latin1Encoding.cs
- XsdDuration.cs
- CFStream.cs
- IntPtr.cs
- safex509handles.cs
- DetailsViewUpdateEventArgs.cs
- BamlLocalizationDictionary.cs
- DynamicActivityTypeDescriptor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- behaviorssection.cs
- RoutedEventHandlerInfo.cs
- PathSegmentCollection.cs
- ZipIOExtraFieldPaddingElement.cs
- EnumerableValidator.cs
- SafeViewOfFileHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- SqlClientPermission.cs
- DateTimeOffsetConverter.cs
- RelationshipWrapper.cs
- TogglePattern.cs
- StorageInfo.cs
- ServiceRoute.cs
- CoTaskMemHandle.cs
- RelationshipEndCollection.cs
- StringUtil.cs
- InsufficientMemoryException.cs
- TextLine.cs
- RequestBringIntoViewEventArgs.cs
- EventListener.cs
- InvalidDataContractException.cs
- DrawingVisual.cs
- CatalogPartDesigner.cs
- ModuleElement.cs
- CodeAttributeDeclaration.cs
- Convert.cs
- XmlIlVisitor.cs
- Expression.cs
- SerializationInfoEnumerator.cs
- BufferBuilder.cs
- ConnectionPointCookie.cs
- TextWriter.cs
- DataTableReaderListener.cs
- AuthenticatingEventArgs.cs
- SQlBooleanStorage.cs
- TextEditorSelection.cs
- ErrorStyle.cs
- CapabilitiesRule.cs
- CollaborationHelperFunctions.cs
- MappingModelBuildProvider.cs
- RoamingStoreFileUtility.cs
- Rect3D.cs
- TextBounds.cs
- StylusSystemGestureEventArgs.cs
- InkCanvasInnerCanvas.cs
- IPAddress.cs
- XmlSchemaAttributeGroupRef.cs
- TextElementEnumerator.cs
- ResXResourceReader.cs
- DynamicMethod.cs
- DES.cs
- TableLayoutColumnStyleCollection.cs
- WebPart.cs
- PlaceHolder.cs
- XPathAncestorQuery.cs
- ListParaClient.cs
- RefreshPropertiesAttribute.cs
- ToolboxItemCollection.cs
- CodeDefaultValueExpression.cs