public override bool TryConvert(ConvertBinder binder, out object result) { if (binder.Type.IsAssignableFrom(node.GetType())) { result = node; } else { throw new InvalidOperationException(); } return(true); }