public static void RegisterRazorLiveShareConverters(this JsonConverterCollection collection) { if (collection == null) { throw new ArgumentNullException(nameof(collection)); } if (collection.Contains(ProjectSnapshotHandleProxyJsonConverter.Instance)) { // Already registered. return; } collection.Add(ProjectSnapshotHandleProxyJsonConverter.Instance); collection.RegisterRazorConverters(); }