c# - How to find out what keyword has been used for local variable declaration? -


how find out keyword has been used declaring local variable? how differentiate between following:

var hi = "asdf"; string hi = "asdf"; 

also, there comprehensive api documentation available writing roslyn diagnostics? has written book on yet?

look @ type property of localvariabledeclarationsyntax. in 1 case predefinedtypesyntax, , in other namedtypesyntax name happens "var".

remember, "var" contextual keyword, , isn't known special in syntax layer.

note: highly recommend installing syntaxvisualizer extension in roslyn sdk zip see parser various bits of text.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -