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
- GlobalizationAssembly.cs
- FormViewPagerRow.cs
- BooleanFunctions.cs
- LogLogRecordEnumerator.cs
- CodeIndexerExpression.cs
- CssStyleCollection.cs
- PenContexts.cs
- LocatorPart.cs
- _ConnectOverlappedAsyncResult.cs
- CustomValidator.cs
- TextEditorDragDrop.cs
- SqlConnectionFactory.cs
- TaskCanceledException.cs
- UInt16.cs
- SchemaElement.cs
- TextChangedEventArgs.cs
- FontUnit.cs
- safePerfProviderHandle.cs
- ContentType.cs
- ListQueryResults.cs
- OracleParameter.cs
- ConfigXmlSignificantWhitespace.cs
- Point3DValueSerializer.cs
- TextTreeInsertElementUndoUnit.cs
- BufferedWebEventProvider.cs
- StatementContext.cs
- TreeSet.cs
- Rfc2898DeriveBytes.cs
- UTF7Encoding.cs
- ItemCollection.cs
- StringValidatorAttribute.cs
- CircleHotSpot.cs
- DataService.cs
- DocumentDesigner.cs
- XmlSchemaSimpleContentRestriction.cs
- EventLogPermission.cs
- DynamicEndpointElement.cs
- ViewStateModeByIdAttribute.cs
- OuterGlowBitmapEffect.cs
- EncoderParameters.cs
- ExpandCollapseProviderWrapper.cs
- sqlcontext.cs
- PageWrapper.cs
- PathGradientBrush.cs
- SqlDataSourceCommandEventArgs.cs
- XamlClipboardData.cs
- TransformerInfoCollection.cs
- TreeNodeCollectionEditorDialog.cs
- CheckBoxFlatAdapter.cs
- StringCollection.cs
- METAHEADER.cs
- FileSystemWatcher.cs
- EntityDataSourceColumn.cs
- CachedRequestParams.cs
- FontSizeConverter.cs
- SAPICategories.cs
- ModelPerspective.cs
- ExceptionCollection.cs
- WorkflowInstance.cs
- Regex.cs
- DirectoryGroupQuery.cs
- TemplateBuilder.cs
- contentDescriptor.cs
- TextSegment.cs
- TextMetrics.cs
- MultipleViewPatternIdentifiers.cs
- CodeDelegateInvokeExpression.cs
- MasterPageCodeDomTreeGenerator.cs
- SHA1CryptoServiceProvider.cs
- BufferedStream.cs
- CompoundFileDeflateTransform.cs
- adornercollection.cs
- BezierSegment.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DirtyTextRange.cs
- TypeUsageBuilder.cs
- NonParentingControl.cs
- cookieexception.cs
- ScriptReferenceEventArgs.cs
- RowToParametersTransformer.cs
- PhysicalAddress.cs
- ByteAnimationUsingKeyFrames.cs
- UserMapPath.cs
- XPathAncestorIterator.cs
- DataSourceControl.cs
- TreeNodeCollectionEditor.cs
- ResizingMessageFilter.cs
- SpeakCompletedEventArgs.cs
- ProfileInfo.cs
- OpacityConverter.cs
- XPathNavigatorKeyComparer.cs
- ImageList.cs
- EncoderParameters.cs
- Invariant.cs
- MouseButton.cs
- Path.cs
- ContentPosition.cs
- RightsManagementEncryptedStream.cs
- BehaviorEditorPart.cs
- dsa.cs