public override bool IsSupported(Type type, string referenceName, LinkedList<object> buildChain)
{
if (type == null)
{
throw new ArgumentNullException(nameof(type));
}
if (type == typeof(IPAddress))
{
return true;
}
if (type != typeof(string))
{
return false;
}
if (string.IsNullOrEmpty(referenceName))
{
return false;
}
if (referenceName.IndexOf("ipaddress", StringComparison.OrdinalIgnoreCase) > -1)
{
return true;
}
return false;
}