I am so excited to see the Rosyln CTP. The demo Anders gives really impresses.
Caller Info attributes: pretty neat. Immediately I want to know why "CallerType" is missing. "CallerMemberName" just begs for it?
Another question: Will the attributes be available anywhere but optional parameters? Why not allow them on any assignment? Then I can write:
var line = -1; Console.WriteLine("Printing at line {0}!", [CallerLine] line = 0);
I know I can create wrapper method but it seems like ceremony.
Don't get me wrong tho, I am thrilled to see these features. Maybe I'm just bikeshedding Image may be NSFW.
Clik here to view..
posted by Justin Bailey