Esempio n. 1
0
        public bool IsInstanceOfType(IType type, object?runtimeValue)
        {
            if (type is null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            return(runtimeValue is Geometry &&
                   SerializersByType.TryGetValue(runtimeValue.GetType(), out var serializer) &&
                   serializer.IsInstanceOfType(type, runtimeValue));
        }
 public bool IsInstanceOfType(object?runtimeValue)
 {
     return(runtimeValue is Geometry &&
            SerializersByType.TryGetValue(runtimeValue.GetType(), out var serializer) &&
            serializer.IsInstanceOfType(runtimeValue));
 }