c# - Invalid Expression term '>' Error -


i have following code :

return regex.replace(sourcedata, (matchevaluator)(omatch => replaceitem(omatch, oobject))); 

i using .net 2.0 , getting error invalid expression term '>'

how solve error ?

if you're not using c# 3.0 (or later) compiler, lambda expressions not supported, , you'll have use anonymous method instead

return regex.replace(sourcedata, delegate(match omatch) { replaceitem(omatch, oobject);}); 

(not sure i've got right, i'm little rusty)


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -