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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -