Extension Method can work on null references, but you can use ?. to null-check anyway.
public class Person
{
public string Name {get; set;}
}
public static class PersonExtensions
{
public static int GetNameLength(this Person person)
{
return person == null ? -1 : pers...