GIS Converter - Logging - Warnings

Dani_S 5,261 Reputation points
2025-12-17T07:56:49.63+00:00

Hi Michel,

In continue to ticket : https://learn.microsoft.com/en-us/answers/questions/5665977/gis-converter-logging-code

Can you please help to fix these warnings:

warnings.txt

Thanks in advance,

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Harry Vo (WICLOUD CORPORATION) 3,925 Reputation points Microsoft External Staff Moderator
    2025-12-17T11:05:02.76+00:00

    Hi @Dani_S ,

    Most of these warnings are nullable reference type mismatches. Your classes implement logging interfaces (ILog, ILogger) but your method signatures don’t allow null where the interface says null is allowed.

    So basically, it happens because nullable reference types are enabled. C# requires implementations to match the interface nullability exactly (object?, Exception?, etc.).

    There is no immediate runtime danger. The code will still run. But you still have to update your method signatures to match the interface (? where required).

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.