c# - resharper search with pattern for using(... new System.Data.Linq.DataContext) -


i attempting search

using (var context = new $datacontext$()) 

where datacontext class extends system.data.linq.datacontext using resharpers 'search pattern'.

the pattern i'm using is:

using($type$ $var$ = new $type$($args$)) {   $stmt$ } 

enter image description here

this appears return all using statements, eg using streamwriter, using filestream, things not derive system.data.linq.datacontext

how can return types indicated?

i using vs 2010 sp1 beta , resharper 5.1 c# edition build 5.1.1727.12

i suggest file bug, because following returns expected results:

$type$ $var$ = new $type$($args$); 

(settings showed them).
returns line:

var context2 = new datacontext(""); 

but not this:

var stream2 = new filestream("", filemode.createnew); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -