Has the literal syntax for methods changed?

May 30, 2013 at 4:57 AM
Edited May 30, 2013 at 4:57 AM
Consider the following taken from a SheepAOP blog post:

[SelectMethods("'void SavingAccount::*(System.Int32)'")]

Running this query through the Query Analyzer produces the following error:

"'void SavingAccount::*(System.Int32)'"
--------------------^'

Has the syntax changed? How are methods represented? I'm happy to use the Criteria if there is a way of specifying arguments.
May 30, 2013 at 5:09 AM
As a follow up... the "Args" criteria is causing an error when used in Query Analyzer:

[SelectMethods("Name: 'IndexOf' & Args: 'System.Char', 'System.Int32'")]

produces

Error parsing pointcut: No parameterless constructor defined for this object.

Can someone point me to a working example of an expression which includes argument criteria? Thanks!
Coordinator
Jun 12, 2013 at 11:59 AM
Sorry for a late response, and thanks for reporting the issues.
There seemed to be bugs on the SAQL grammar on both occasions that you described. I have fixed both issues if you could please update via NuGet to the lastet version (v0.3.0.12).
Please let me know how you get on.
Jun 12, 2013 at 12:15 PM
Fantastic!! Thank you for making these updates. Ill test it out later today. Really looking forward to using this library - it's the best designed aop solution that I've seen for .net.

-Eric