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
- SystemWebExtensionsSectionGroup.cs
- PageContent.cs
- ThicknessAnimation.cs
- PeerResolver.cs
- HttpListenerResponse.cs
- SerializationStore.cs
- WebEventTraceProvider.cs
- OperationContractGenerationContext.cs
- XNodeSchemaApplier.cs
- RemotingService.cs
- TraceAsyncResult.cs
- ManagementInstaller.cs
- PackagePart.cs
- Int64Converter.cs
- _SSPISessionCache.cs
- DiscoveryDocumentReference.cs
- GatewayIPAddressInformationCollection.cs
- DataSourceView.cs
- BamlResourceSerializer.cs
- HttpModuleAction.cs
- DataContractJsonSerializerOperationFormatter.cs
- _OSSOCK.cs
- KnownBoxes.cs
- InfoCardClaim.cs
- RSAOAEPKeyExchangeFormatter.cs
- errorpatternmatcher.cs
- Int32RectValueSerializer.cs
- DocumentGridContextMenu.cs
- WebReferencesBuildProvider.cs
- TraceListeners.cs
- BitmapEffectCollection.cs
- IPEndPointCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SetterBaseCollection.cs
- StreamInfo.cs
- WsdlWriter.cs
- XamlPathDataSerializer.cs
- Rect3D.cs
- TickBar.cs
- WebServiceReceiveDesigner.cs
- StateItem.cs
- HtmlTitle.cs
- CaseInsensitiveComparer.cs
- ExpressionVisitor.cs
- ColorAnimationUsingKeyFrames.cs
- TypeLibConverter.cs
- SafeLibraryHandle.cs
- DoubleCollection.cs
- Size.cs
- RegistryPermission.cs
- Splitter.cs
- BamlStream.cs
- ScrollPatternIdentifiers.cs
- ServicePointManagerElement.cs
- WebScriptServiceHostFactory.cs
- ExpressionCopier.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Separator.cs
- ControlCachePolicy.cs
- WebPartAuthorizationEventArgs.cs
- MetadataArtifactLoaderComposite.cs
- HelpProvider.cs
- TextTreeInsertElementUndoUnit.cs
- SlotInfo.cs
- Int64Converter.cs
- FragmentQuery.cs
- ArglessEventHandlerProxy.cs
- WebPageTraceListener.cs
- RuntimeEnvironment.cs
- CleanUpVirtualizedItemEventArgs.cs
- ImportCatalogPart.cs
- GridPattern.cs
- Version.cs
- UInt64Storage.cs
- Int32CollectionConverter.cs
- DocumentViewerConstants.cs
- XmlSequenceWriter.cs
- WebRequest.cs
- FontStretch.cs
- MetadataItem.cs
- CompatibleComparer.cs
- Literal.cs
- BindStream.cs
- XmlSchemaSubstitutionGroup.cs
- WebBrowser.cs
- EdmFunction.cs
- SqlBulkCopy.cs
- TextTreeInsertElementUndoUnit.cs
- JournalEntry.cs
- ExpandableObjectConverter.cs
- _ShellExpression.cs
- SafeLibraryHandle.cs
- ConfigXmlAttribute.cs
- EntityDataSourceDesigner.cs
- StrokeIntersection.cs
- BindingNavigator.cs
- FieldTemplateFactory.cs
- unsafenativemethodstextservices.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- __Filters.cs