Code:
/ DotNET / DotNET / 8.0 / untmp / 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 debugger 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpException.cs
- Button.cs
- KeyedCollection.cs
- MetadataHelper.cs
- ScrollChangedEventArgs.cs
- DockPanel.cs
- SpeechSynthesizer.cs
- CollectionViewSource.cs
- XmlSchemaAttributeGroup.cs
- SafeViewOfFileHandle.cs
- ToolboxItem.cs
- HttpUnhandledOperationInvoker.cs
- RegisteredHiddenField.cs
- ExceptionHandlerDesigner.cs
- ContextItemManager.cs
- RowType.cs
- DrawingAttributeSerializer.cs
- ConfigXmlSignificantWhitespace.cs
- CurrencyWrapper.cs
- RegexCompilationInfo.cs
- LineVisual.cs
- ViewDesigner.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- TransformedBitmap.cs
- PreservationFileWriter.cs
- FormatConvertedBitmap.cs
- ImageSource.cs
- OleDbError.cs
- SqlParameter.cs
- HttpModuleCollection.cs
- XmlLinkedNode.cs
- Double.cs
- SpotLight.cs
- Function.cs
- EdgeProfileValidation.cs
- StatusBar.cs
- ECDiffieHellmanCng.cs
- UserControlFileEditor.cs
- SystemColors.cs
- SamlAuthenticationClaimResource.cs
- AutoFocusStyle.xaml.cs
- CodeAttributeArgument.cs
- VBCodeProvider.cs
- SByteConverter.cs
- AdapterUtil.cs
- Region.cs
- ItemChangedEventArgs.cs
- UriTemplateCompoundPathSegment.cs
- ChooseAction.cs
- TableLayoutSettingsTypeConverter.cs
- CounterSampleCalculator.cs
- InvalidFilterCriteriaException.cs
- TraceSection.cs
- Scheduler.cs
- DefaultValueConverter.cs
- ProvidersHelper.cs
- X509Utils.cs
- HybridDictionary.cs
- StringPropertyBuilder.cs
- CommunicationObjectManager.cs
- ExpressionConverter.cs
- XmlStreamNodeWriter.cs
- MailAddressCollection.cs
- CodeDirectionExpression.cs
- CommandBinding.cs
- TemplateXamlParser.cs
- GridViewRow.cs
- InvalidPrinterException.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- peersecuritysettings.cs
- GenericIdentity.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- LabelDesigner.cs
- MouseGestureConverter.cs
- InlinedLocationReference.cs
- RegexBoyerMoore.cs
- LinqDataSourceView.cs
- SoapAttributeAttribute.cs
- ExtendedPropertyDescriptor.cs
- Math.cs
- QueryCursorEventArgs.cs
- TimeManager.cs
- DateTimeOffsetStorage.cs
- WeakEventManager.cs
- Int32AnimationUsingKeyFrames.cs
- SqlServices.cs
- backend.cs
- SendKeys.cs
- DataControlButton.cs
- EncoderNLS.cs
- JsonByteArrayDataContract.cs
- StreamWriter.cs
- DataGridViewColumnEventArgs.cs
- EventArgs.cs
- CheckPair.cs
- OuterGlowBitmapEffect.cs
- LabelDesigner.cs
- DoubleLinkList.cs
- ConnectionInterfaceCollection.cs
- DiscriminatorMap.cs