c# - How to determine that a partial method has no implementation -


given case:

partial class test {     partial void foobar(); }  partial class test {     public void foo()     {         foobar();     } } 

now getting symbolinfo foobar() invocation gives me imethodsymbol partialdefinitionpart == null , partialimplementationpart == null. there way determine there no partial implementation ?

the xml documentation partialdefinitionpart says:

if partial method implementation part, returns corresponding definition part. otherwise null.

and partialimplementationpart:

if partial method declaration without body, , method implemented body, returns implementing definition. otherwise null.

this mean if you're calling partial method has implementation, symbol have non-null partialimplementationpart. interestingly, there doesn't seem simple way find whether method partial or not.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -