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
- ControllableStoryboardAction.cs
- OrthographicCamera.cs
- FontNamesConverter.cs
- CombinedGeometry.cs
- DataRelation.cs
- StateBag.cs
- DataContext.cs
- Claim.cs
- Calendar.cs
- MachineKeyConverter.cs
- StringTraceRecord.cs
- DetailsViewInsertedEventArgs.cs
- NetCodeGroup.cs
- ViewStateModeByIdAttribute.cs
- BindMarkupExtensionSerializer.cs
- ObjectDisposedException.cs
- TileModeValidation.cs
- AssemblyNameProxy.cs
- AutoGeneratedField.cs
- Typeface.cs
- ContextCorrelationInitializer.cs
- OutputScope.cs
- XmlNamespaceDeclarationsAttribute.cs
- TextDecoration.cs
- CachingHintValidation.cs
- Rotation3DKeyFrameCollection.cs
- DataSourceControlBuilder.cs
- MetadataItemSerializer.cs
- SqlGatherProducedAliases.cs
- CmsUtils.cs
- BufferAllocator.cs
- WebPartCatalogCloseVerb.cs
- _DisconnectOverlappedAsyncResult.cs
- LinqDataSourceUpdateEventArgs.cs
- FixedTextView.cs
- TemplatePartAttribute.cs
- DetailsViewRowCollection.cs
- ConfigurationPropertyCollection.cs
- StreamedWorkflowDefinitionContext.cs
- UriTemplateQueryValue.cs
- ConfigViewGenerator.cs
- Model3DCollection.cs
- _SafeNetHandles.cs
- MarginCollapsingState.cs
- XmlBinaryReader.cs
- HttpListenerRequest.cs
- DataBindingsDialog.cs
- LinearGradientBrush.cs
- DSACryptoServiceProvider.cs
- HttpHandlerAction.cs
- ping.cs
- Substitution.cs
- ScriptResourceAttribute.cs
- GcSettings.cs
- WebDescriptionAttribute.cs
- Brush.cs
- SafeFileMappingHandle.cs
- Animatable.cs
- DecoderExceptionFallback.cs
- CultureTableRecord.cs
- DatePicker.cs
- UnionCqlBlock.cs
- XmlnsDefinitionAttribute.cs
- TableCellCollection.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ServiceInstallComponent.cs
- CancellationHandlerDesigner.cs
- RequestResizeEvent.cs
- SecurityPolicySection.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- RijndaelCryptoServiceProvider.cs
- DataGridPagerStyle.cs
- EntityDesignerDataSourceView.cs
- DataSourceView.cs
- ColumnMap.cs
- SoapExtensionStream.cs
- SortDescriptionCollection.cs
- ToolStripStatusLabel.cs
- SqlDataSourceSelectingEventArgs.cs
- GenericWebPart.cs
- MissingSatelliteAssemblyException.cs
- shaperfactoryquerycacheentry.cs
- loginstatus.cs
- InvalidEnumArgumentException.cs
- CodeSnippetCompileUnit.cs
- OutputCacheSettingsSection.cs
- RotateTransform3D.cs
- FocusWithinProperty.cs
- NamedObject.cs
- XmlDownloadManager.cs
- PopupRootAutomationPeer.cs
- Win32PrintDialog.cs
- IDReferencePropertyAttribute.cs
- AliasedExpr.cs
- LeafCellTreeNode.cs
- WebPageTraceListener.cs
- DataMisalignedException.cs
- SqlCachedBuffer.cs
- AssemblyFilter.cs
- JoinElimination.cs