Anyone knows of a way to inject some code before the compiler does its job?
My goal is to be able to add attributes to function parameters to generate testing code so a function like
would become
I wouldn't mind if the code was automatically generated at runtime by I don't know more how to do it.
Any help would be quite appreciated, thank you all
My goal is to be able to add attributes to function parameters to generate testing code so a function like
Code:
function MyFunction(<notNothing()>test as object)
end function
Code:
function MyFunction(test as object)
if test is nothing then
throw new ArgumentNullException("test")
end if
end function
I wouldn't mind if the code was automatically generated at runtime by I don't know more how to do it.
Any help would be quite appreciated, thank you all