"Replace ArrayList with List<T>" should do more
Currently the "Replace ArrayList with List<T>" command deducts the actual type from the context and correctly e.g. replaces "ArrayList" with "List]]>".
What it currently omits is to convert things like this:
return (string[])result.ToArray( typeof( string ) );
to something like this:
return result.ToArray();
Since the signature of the ToArray() function changes from ArrayList to List.
My suggestion is to rewrite such function calls and casts, too, when executing the "Replace ArrayList with List]]>" command.
Thanks
Uwe
Please sign in to leave a comment.
Hello Uwe,
I think we've already noticed this problem:
http://www.jetbrains.net/jira/browse/RSRP-44957
Anyway, thanks for the feedback!
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Great! Thank you for your feedback.