/// ------------------------------------------------------------------------------------ /// <summary> /// Gets a collection of phones in the form of a comma delimited list that are found in /// the cache and are of the specified type. /// </summary> /// ------------------------------------------------------------------------------------ public string GetCommaDelimitedPhones(IPASymbolType type) { var phones = GetPhonesHavingType(type); var bldr = new StringBuilder(); foreach (var phone in phones) { bldr.Append(phone); bldr.Append(","); } // Get rid of the last comma. if (bldr.Length > 0) { bldr.Length--; } return(bldr.ToString()); }
public IPASymbolTypeInfo(IPASymbolType type, IPASymbolSubType subType) { Type = type; SubType = subType; }
public IPASymbolTypeInfo(IPASymbolType type) { Type = type; SubType = IPASymbolSubType.notApplicable; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Gets a collection of phones in the cache of the specified type. /// </summary> /// ------------------------------------------------------------------------------------ public string[] GetPhonesHavingType(IPASymbolType type) { return((from kvp in this where kvp.Value.CharType == type select kvp.Key).ToArray()); }