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 -

php - MySQLi multi_query results for later use -