Better class generation if generic type is known

Hi,

it would be nice if ReSharper use the where hint for generating a new class.

Example:


public class Foo where T : Collection { } public class Bar { private Foo newClassCollection; } so if NewClass not exists a quick fix appears for creating it. And R# generates public class NewClass { } Nice would be if R# created public class NewClass : Collection { } Or an example from the "real world" public interface IFooView { event EventHandlery]]> ItemSelected;
}

It should create for ItemSelectEventArgs

public class ItemSelectEventArgs: EventArgs
{
}

--
Regards

Albert Weinert
MVP Visual Developer ASP.NET

http://der-albert.com

Please sign in to leave a comment.