lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] theolivenbaum commented on pull request #345: Reduce casting
Date Tue, 22 Sep 2020 16:32:02 GMT

theolivenbaum commented on pull request #345:

   @NightOwl888 just checking on [sharplab again](
It seems both these options produce the exact same IL/ASM:
       public static void A(IMyInterface c) {
           if(c != null && c is MyClass cc) {
       public static void D(IMyInterface c) {
           if(c is object && c is MyClass cc2) {
   Do you prefer I undo the pattern matching changes, or add the extra `is object` to them
so moving forward you also don't get the warning on VS?

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message