Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / arclist.cs / 1 / arclist.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace System.Speech.Internal.SrgsCompiler { #if DEBUG && !SPEECHSERVER [DebuggerDisplay ("Count #{Count}")] [DebuggerTypeProxy (typeof (ArcListDebugDisplay))] #endif internal class ArcList : RedBackList { //******************************************************************* // // Internal Methods // //******************************************************************* #region Internal Methods ////// Build a List with all the arcs /// ///internal List ToList () { List collection = new List (); foreach (Arc arc in this) { collection.Add (arc); } return collection; } override protected int CompareTo (object arc1, object arc2) { return Arc.CompareContentForKey ((Arc) arc1, (Arc) arc2); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties new internal Arc First { get { return (Arc) base.First; } } #endregion //******************************************************************** // // Private Members // //******************************************************************** #region Private Members #if DEBUG && !SPEECHSERVER private int Count { get { int count = 0; foreach (Arc arc in this) { count++; } return count; } } // Used by the debbugger display attribute private class ArcListDebugDisplay { public ArcListDebugDisplay (ArcList item) { _item = item; } [DebuggerBrowsable (DebuggerBrowsableState.RootHidden)] public Arc [] AKeys { get { Arc [] item = new Arc [_item.Count]; int i = 0; foreach (Arc arc in _item) { item [i++] = arc; } return item; } } private ArcList _item; } #endif #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; namespace System.Speech.Internal.SrgsCompiler { #if DEBUG && !SPEECHSERVER [DebuggerDisplay ("Count #{Count}")] [DebuggerTypeProxy (typeof (ArcListDebugDisplay))] #endif internal class ArcList : RedBackList { //******************************************************************* // // Internal Methods // //******************************************************************* #region Internal Methods ////// Build a List with all the arcs /// ///internal List ToList () { List collection = new List (); foreach (Arc arc in this) { collection.Add (arc); } return collection; } override protected int CompareTo (object arc1, object arc2) { return Arc.CompareContentForKey ((Arc) arc1, (Arc) arc2); } #endregion //******************************************************************** // // Internal Properties // //******************************************************************* #region Internal Properties new internal Arc First { get { return (Arc) base.First; } } #endregion //******************************************************************** // // Private Members // //******************************************************************** #region Private Members #if DEBUG && !SPEECHSERVER private int Count { get { int count = 0; foreach (Arc arc in this) { count++; } return count; } } // Used by the debbugger display attribute private class ArcListDebugDisplay { public ArcListDebugDisplay (ArcList item) { _item = item; } [DebuggerBrowsable (DebuggerBrowsableState.RootHidden)] public Arc [] AKeys { get { Arc [] item = new Arc [_item.Count]; int i = 0; foreach (Arc arc in _item) { item [i++] = arc; } return item; } } private ArcList _item; } #endif #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
- ObjectTag.cs
- ClientConfigPaths.cs
- ContextQuery.cs
- HashHelper.cs
- EventProviderWriter.cs
- QualifiedCellIdBoolean.cs
- SamlConstants.cs
- COM2Properties.cs
- Parameter.cs
- ConstrainedDataObject.cs
- X509Chain.cs
- ToolStripRendererSwitcher.cs
- Int16AnimationUsingKeyFrames.cs
- CodeCatchClauseCollection.cs
- EdmItemCollection.cs
- PaperSource.cs
- AttachInfo.cs
- InboundActivityHelper.cs
- SQLInt32.cs
- TimerElapsedEvenArgs.cs
- MouseBinding.cs
- Missing.cs
- WorkflowMessageEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- TaiwanLunisolarCalendar.cs
- ValuePatternIdentifiers.cs
- XmlSiteMapProvider.cs
- DataGridComponentEditor.cs
- DirectoryObjectSecurity.cs
- IgnoreSection.cs
- XmlDataSource.cs
- CqlQuery.cs
- ToolboxItemCollection.cs
- ProviderIncompatibleException.cs
- Page.cs
- XamlTemplateSerializer.cs
- DataSourceView.cs
- CompensationToken.cs
- AddInAttribute.cs
- EntityDataReader.cs
- UnmanagedBitmapWrapper.cs
- PixelFormats.cs
- MissingFieldException.cs
- MouseOverProperty.cs
- DrawingCollection.cs
- SR.cs
- IdentityHolder.cs
- RoutedEventHandlerInfo.cs
- WebPartAddingEventArgs.cs
- JournalEntryStack.cs
- FunctionImportElement.cs
- MenuItemStyle.cs
- ZipIOExtraFieldPaddingElement.cs
- CacheMemory.cs
- VectorCollectionConverter.cs
- OdbcConnectionPoolProviderInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- TextServicesCompartment.cs
- Root.cs
- InternalResources.cs
- TriggerBase.cs
- WebPartTracker.cs
- ReversePositionQuery.cs
- RegexFCD.cs
- StringCollection.cs
- EntityClientCacheEntry.cs
- CrossAppDomainChannel.cs
- NotifyIcon.cs
- PhotoPrintingIntent.cs
- EmptyEnumerable.cs
- Imaging.cs
- GridPatternIdentifiers.cs
- XmlMapping.cs
- DataControlPagerLinkButton.cs
- MimeWriter.cs
- DocumentApplication.cs
- Atom10ItemFormatter.cs
- LOSFormatter.cs
- DocumentApplication.cs
- UIElement.cs
- SizeConverter.cs
- ActiveXSite.cs
- RayMeshGeometry3DHitTestResult.cs
- QueryValue.cs
- GridViewRowPresenterBase.cs
- SyndicationItem.cs
- ThicknessAnimationUsingKeyFrames.cs
- HtmlInputReset.cs
- TrustSection.cs
- BindingExpressionBase.cs
- Material.cs
- PrinterUnitConvert.cs
- PropertyItem.cs
- __Filters.cs
- SQLByte.cs
- QuaternionRotation3D.cs
- TTSVoice.cs
- RemotingConfigParser.cs
- QuaternionRotation3D.cs
- RoutedEvent.cs