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
- ActivityExecutor.cs
- SelectorAutomationPeer.cs
- PinnedBufferMemoryStream.cs
- ReceiveDesigner.xaml.cs
- SequenceFullException.cs
- DesignerActionVerbItem.cs
- OdbcConnectionHandle.cs
- ContainerControl.cs
- FindRequestContext.cs
- Function.cs
- ForwardPositionQuery.cs
- TextFormatterHost.cs
- Utility.cs
- ImageFormat.cs
- CellPartitioner.cs
- InternalPermissions.cs
- ServiceMemoryGates.cs
- ErrorFormatterPage.cs
- OutOfProcStateClientManager.cs
- ClientRuntimeConfig.cs
- Ref.cs
- BaseResourcesBuildProvider.cs
- Condition.cs
- XmlSchemaException.cs
- TableAdapterManagerHelper.cs
- WorkflowCreationContext.cs
- TypeNameConverter.cs
- PixelFormatConverter.cs
- BuilderElements.cs
- Tracer.cs
- StringBlob.cs
- XmlRootAttribute.cs
- UnsafeNativeMethods.cs
- _ProxyRegBlob.cs
- ToolStripSplitButton.cs
- LocatorGroup.cs
- Convert.cs
- Pkcs7Signer.cs
- XmlSiteMapProvider.cs
- WebPartZone.cs
- IndentTextWriter.cs
- LabelEditEvent.cs
- KnownTypeDataContractResolver.cs
- CompiledXpathExpr.cs
- SmiSettersStream.cs
- ExpressionValueEditor.cs
- Serializer.cs
- WebCodeGenerator.cs
- SubMenuStyle.cs
- EventLogTraceListener.cs
- ComplexObject.cs
- TreeNodeClickEventArgs.cs
- OracleDateTime.cs
- StorageMappingItemLoader.cs
- Accessible.cs
- CompressedStack.cs
- BoolExpr.cs
- OleDbPermission.cs
- QueryAccessibilityHelpEvent.cs
- SerialStream.cs
- ConfigurationLocationCollection.cs
- ScheduleChanges.cs
- TextTreeNode.cs
- FontResourceCache.cs
- Point3DCollection.cs
- WebHttpBehavior.cs
- DataGridCellClipboardEventArgs.cs
- ColorContext.cs
- TransformerInfoCollection.cs
- CompiledIdentityConstraint.cs
- RepeaterItem.cs
- EncryptedData.cs
- FileLevelControlBuilderAttribute.cs
- XslTransform.cs
- LocalizableAttribute.cs
- VisualStateChangedEventArgs.cs
- PointConverter.cs
- CrossAppDomainChannel.cs
- LocalValueEnumerator.cs
- TemplatePropertyEntry.cs
- METAHEADER.cs
- AlternateView.cs
- TextDecorationCollection.cs
- OleDbEnumerator.cs
- ConfigurationSection.cs
- Compress.cs
- XmlDataImplementation.cs
- DisplayMemberTemplateSelector.cs
- DynamicActivityXamlReader.cs
- FillErrorEventArgs.cs
- SecurityTokenTypes.cs
- XmlParserContext.cs
- ProjectedSlot.cs
- OutgoingWebResponseContext.cs
- QilCloneVisitor.cs
- ImportedPolicyConversionContext.cs
- StateFinalizationDesigner.cs
- ExtentCqlBlock.cs
- DayRenderEvent.cs
- ComAwareEventInfo.cs