Obtain the letters between f and j
using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
class Program
{
static void Main()
{
var letters = new SortedSet<char>("the quick brown fox");
foreach (char c in letters.GetViewBetween('f', 'j'))
Console.Write(c);
}
}
The output:
fhi
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |