View Single Post
  #1 (permalink)  
Old 09-27-2005
DeepDiver's Avatar
DeepDiver DeepDiver is offline
Registered User
 
Name: Thomas Müller
Organization: Freelance Software Developer
Project: Project depend on Customers
 
Join Date: Nov 2004
Location: Munich, Bavaria, Germany
Posts: 100
Nice to have: BinarySearch and Sort method on generated collections

hi,

in case sequence<> is generated with the meta tag ["cs:collection"]
it would be nice to have the BinarySearch and Sort methods available.

the generated code will look like:
Code:
	public int BinarySearch(C value)
	{
	    return InnerList.BinarySearch(value);
	}

	public void Sort()
	{
	    return InnerList.Sort();
	}
this is actually pretty straight foreward.

thx & cu tom


PS: adding the contructor with parameter ICollection c would help as well.
__________________
Thomas Müller, Freelance Software Developer
My profil on www.freelancermap.de
Projects depend on customers

Last edited by DeepDiver : 09-27-2005 at 11:27 AM.
Reply With Quote