Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / SemanticResultValue.cs / 1 / SemanticResultValue.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_tag.DebugSummary}")] public class SemanticResultValue { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// TODOC /// /// public SemanticResultValue (object value) { Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (value); } ////// TODOC /// /// /// public SemanticResultValue (string phrase, object value) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (new GrammarBuilderPhrase ((string) phrase.Clone ()), value); } ////// TODOC /// /// /// public SemanticResultValue (GrammarBuilder builder, object value) { Helpers.ThrowIfNull (builder, "builder"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (builder.Clone (), value); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties /// /// /// internal TagElement Tag { get { return _tag; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private TagElement _tag; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System.Collections.Generic; using System.Diagnostics; using System.Speech.Internal.GrammarBuilding; using System.Speech.Internal; namespace System.Speech.Recognition { ////// /// [DebuggerDisplay ("{_tag.DebugSummary}")] public class SemanticResultValue { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// TODOC /// /// public SemanticResultValue (object value) { Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (value); } ////// TODOC /// /// /// public SemanticResultValue (string phrase, object value) { Helpers.ThrowIfEmptyOrNull (phrase, "phrase"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (new GrammarBuilderPhrase ((string) phrase.Clone ()), value); } ////// TODOC /// /// /// public SemanticResultValue (GrammarBuilder builder, object value) { Helpers.ThrowIfNull (builder, "builder"); Helpers.ThrowIfNull (value, "value"); _tag = new TagElement (builder.Clone (), value); } #endregion //******************************************************************** // // Public Methods // //******************************************************************* #region Public Methods ////// TODOC /// ///public GrammarBuilder ToGrammarBuilder () { return new GrammarBuilder (this); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************** #region Internal Properties /// /// /// internal TagElement Tag { get { return _tag; } } #endregion //******************************************************************* // // Private Fields // //******************************************************************** #region Private Fields private TagElement _tag; #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
- SafeTokenHandle.cs
- PathSegment.cs
- MoveSizeWinEventHandler.cs
- SystemIPv6InterfaceProperties.cs
- BooleanAnimationUsingKeyFrames.cs
- ScriptResourceHandler.cs
- ExecutedRoutedEventArgs.cs
- Keyboard.cs
- JulianCalendar.cs
- PermissionToken.cs
- BoundingRectTracker.cs
- CompoundFileReference.cs
- documentsequencetextview.cs
- BrowserCapabilitiesFactory.cs
- DataGridView.cs
- EntityClientCacheKey.cs
- DefaultPropertyAttribute.cs
- CodeAccessSecurityEngine.cs
- Propagator.Evaluator.cs
- RenderDataDrawingContext.cs
- OleDbDataReader.cs
- TableItemStyle.cs
- AsymmetricSecurityProtocol.cs
- MappingModelBuildProvider.cs
- ContainerVisual.cs
- ToolStripItemImageRenderEventArgs.cs
- ListView.cs
- CheckBox.cs
- BlockUIContainer.cs
- RepeaterItem.cs
- HotCommands.cs
- IPAddress.cs
- TypeBuilderInstantiation.cs
- DeferredTextReference.cs
- ListViewUpdateEventArgs.cs
- TrackingMemoryStreamFactory.cs
- RawStylusActions.cs
- DBCSCodePageEncoding.cs
- StreamGeometryContext.cs
- Application.cs
- ErrorEventArgs.cs
- ErrorWebPart.cs
- ListControl.cs
- DirtyTextRange.cs
- SecurityCriticalDataForSet.cs
- Model3D.cs
- XmlTextReaderImpl.cs
- ValidatorCollection.cs
- Gdiplus.cs
- IconConverter.cs
- EventLogTraceListener.cs
- PersonalizableAttribute.cs
- ReflectionTypeLoadException.cs
- PropertySourceInfo.cs
- FixedStringLookup.cs
- SessionEndedEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- SvcMapFileSerializer.cs
- ObjectStateEntry.cs
- PerformanceCounterLib.cs
- XmlSchemaParticle.cs
- Registry.cs
- XmlSerializationGeneratedCode.cs
- Header.cs
- ResourceCategoryAttribute.cs
- SystemIPInterfaceStatistics.cs
- UpdatableWrapper.cs
- PagerSettings.cs
- JoinCqlBlock.cs
- ColorContextHelper.cs
- MembershipUser.cs
- InputLangChangeRequestEvent.cs
- NameValueConfigurationElement.cs
- HierarchicalDataSourceControl.cs
- BinaryWriter.cs
- SettingsProperty.cs
- DiscoveryDocumentReference.cs
- RegistryKey.cs
- PropertyNames.cs
- DataGridSortCommandEventArgs.cs
- ValueUtilsSmi.cs
- CustomError.cs
- WindowsMenu.cs
- GlyphCache.cs
- WsatTransactionFormatter.cs
- FunctionDescription.cs
- CodeExpressionRuleDeclaration.cs
- SqlRemoveConstantOrderBy.cs
- SplitterPanel.cs
- SchemaComplexType.cs
- DoneReceivingAsyncResult.cs
- UpdateTracker.cs
- ModelItem.cs
- NativeMethods.cs
- ContentAlignmentEditor.cs
- WebPartsPersonalization.cs
- SimpleHandlerBuildProvider.cs
- Matrix.cs
- TextSelectionHelper.cs
- ReturnValue.cs