From 88a390d0d53690ff0bbc96af09dc36dd220645d6 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:03:04 -0800 Subject: [PATCH 1/5] fix grammar in CA2261 message --- .../MicrosoftNetCoreAnalyzersResources.resx | 66 +++++++++---------- .../MicrosoftNetCoreAnalyzersResources.cs.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.de.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.es.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.fr.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.it.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ja.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ko.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.pl.xlf | 18 ++--- ...crosoftNetCoreAnalyzersResources.pt-BR.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ru.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.tr.xlf | 18 ++--- ...osoftNetCoreAnalyzersResources.zh-Hans.xlf | 16 ++--- ...osoftNetCoreAnalyzersResources.zh-Hant.xlf | 18 ++--- .../Microsoft.CodeAnalysis.NetAnalyzers.md | 8 +-- .../Microsoft.CodeAnalysis.NetAnalyzers.sarif | 4 +- 16 files changed, 155 insertions(+), 155 deletions(-) diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx index 979f75ff53..20b6cbb758 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx @@ -1,17 +1,17 @@  - @@ -1005,10 +1005,10 @@ Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult> - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum @@ -1707,9 +1707,9 @@ The 'ModuleInitializer' attribute should not be used in libraries - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. @@ -2096,4 +2096,4 @@ Widening and user defined conversions are not supported with generic types. Cache and reuse 'JsonSerializerOptions' instances - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf index 6be439919e..268ec4db50 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Metody Enumerable.Cast<T> a Enumerable.OfType<T> vyžadují k očekávané funkci kompatibilní typy. -Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou Enumerable.Cast<T> vyvolá výjimku InvalidCastException za běhu u prvků zadaných typů. - Ověření obecného typu (operátor is v jazyce C# /isinst převodního jazyka IL) metodou Enumerable.OfType<T> nebude nikdy úspěšné s prvky zadaných typů a výsledkem bude prázdná sekvence. + Metody Enumerable.Cast<T> a Enumerable.OfType<T> vyžadují k očekávané funkci kompatibilní typy. +Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou Enumerable.Cast<T> vyvolá výjimku InvalidCastException za běhu u prvků zadaných typů. + Ověření obecného typu (operátor is v jazyce C# /isinst převodního jazyka IL) metodou Enumerable.OfType<T> nebude nikdy úspěšné s prvky zadaných typů a výsledkem bude prázdná sekvence. Rozšíření a uživatelem definované převody se u obecných typů nepodporují. @@ -924,12 +924,12 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing se podporuje pouze u neobecných úloh, nikoli u Task<TResult>. Pokud ho chcete použít s task<TResult>, nejprve ho přetypujte na základní úlohu. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing se podporuje pouze s neobecnou úlohou. @@ -3270,4 +3270,4 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf index de7796dcd6..1ee412ce39 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> und Enumerable.OfType<T> erfordern kompatible Typen, um ordnungsgemäß zu funktionieren. -Die generische Umwandlung (IL „unbox.any“), die der von der von Enumerable.Cast<T> zurückgegebenen Sequenz verwendet wird, löst zur Laufzeit bei Elementen der angegebenen Typen eine InvalidCastException-Ausnahme aus. -Die von Enumerable.OfType<T> verwendete generische Typüberprüfung (C# „is“-Operator/IL „isinst“) wird nie erfolgreich ausgeführt, wenn Elemente von Typen angegeben werden, die in einer leeren Sequenz resultieren. + Enumerable.Cast<T> und Enumerable.OfType<T> erfordern kompatible Typen, um ordnungsgemäß zu funktionieren. +Die generische Umwandlung (IL „unbox.any“), die der von der von Enumerable.Cast<T> zurückgegebenen Sequenz verwendet wird, löst zur Laufzeit bei Elementen der angegebenen Typen eine InvalidCastException-Ausnahme aus. +Die von Enumerable.OfType<T> verwendete generische Typüberprüfung (C# „is“-Operator/IL „isinst“) wird nie erfolgreich ausgeführt, wenn Elemente von Typen angegeben werden, die in einer leeren Sequenz resultieren. Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Typen nicht unterstützt. @@ -924,12 +924,12 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. "ConfigureResultitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task und nicht mit einem Task<TResult> unterstützt. Um es mit einem Task<TResult> zu verwenden, wandeln Sie zuerst in den Basistask um. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task "Configure OdbcitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task unterstützt. @@ -3270,4 +3270,4 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf index 0a529da884..2b556bc650 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> y Enumerable.OfType<T> requieren tipos compatibles para funcionar de manera esperada. -La conversión genérica ("unbox.any" de IL) usada por la secuencia devuelta por Enumerable.Cast<T> iniciará InvalidCastException en tiempo de ejecución en los elementos de los tipos especificados. -La comprobación de tipos genéricos (operador "is" de C# o "isinst" de IL) usada por Enumerable.OfType<T> nunca se completará correctamente con los elementos de tipos especificados, lo que provocará una secuencia vacía. + Enumerable.Cast<T> y Enumerable.OfType<T> requieren tipos compatibles para funcionar de manera esperada. +La conversión genérica ("unbox.any" de IL) usada por la secuencia devuelta por Enumerable.Cast<T> iniciará InvalidCastException en tiempo de ejecución en los elementos de los tipos especificados. +La comprobación de tipos genéricos (operador "is" de C# o "isinst" de IL) usada por Enumerable.OfType<T> nunca se completará correctamente con los elementos de tipos especificados, lo que provocará una secuencia vacía. La ampliación y las conversiones definidas por el usuario no se admiten con tipos genéricos. @@ -924,12 +924,12 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica, no con Task<TResult>. Para usarlo con Task<TResult>, convierta primero a Task base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica @@ -3270,4 +3270,4 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf index 0e0aac67c8..6f9b10aedd 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> et Enumerable.OfType<T> nécessitent des types compatibles pour fonctionner normalement. -Le cast générique (IL 'unbox.any') utilisé par la séquence retournée par Enumerable.Cast<T> lève InvalidCastException au moment de l’exécution sur les éléments des types spécifiés. -La vérification de type générique (opérateur C# 'is'/IL 'isinst') utilisée par Enumerable.OfType<T> ne réussira jamais avec les éléments de types spécifiés, ce qui entraîne une séquence vide. + Enumerable.Cast<T> et Enumerable.OfType<T> nécessitent des types compatibles pour fonctionner normalement. +Le cast générique (IL 'unbox.any') utilisé par la séquence retournée par Enumerable.Cast<T> lève InvalidCastException au moment de l’exécution sur les éléments des types spécifiés. +La vérification de type générique (opérateur C# 'is'/IL 'isinst') utilisée par Enumerable.OfType<T> ne réussira jamais avec les éléments de types spécifiés, ce qui entraîne une séquence vide. Les conversions étendues et définies par l’utilisateur ne sont pas prises en charge avec les types génériques. @@ -924,12 +924,12 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique, et non avec une tâche Task<TResult>. Pour l’utiliser avec une tâche Task<TResult>, commencez par effectuer un cast vers la tâche de base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique @@ -3270,4 +3270,4 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf index 2d2d06ebdc..8378feb7cc 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> e Enumerable.OfType<T> richiedono tipi compatibili per funzionare correttamente. -Il cast generico (IL 'unbox.any') usato dalla sequenza restituita da Enumerable.Cast<T> genererà InvalidCastException in fase di esecuzione sugli elementi dei tipi specificati. -Il controllo di tipo generico (C# 'is' operator/IL 'isinst') usato da Enumerable.OfType<T> non avrà mai esito positivo con gli elementi di tipi specificati, generando una sequenza vuota. + Enumerable.Cast<T> e Enumerable.OfType<T> richiedono tipi compatibili per funzionare correttamente. +Il cast generico (IL 'unbox.any') usato dalla sequenza restituita da Enumerable.Cast<T> genererà InvalidCastException in fase di esecuzione sugli elementi dei tipi specificati. +Il controllo di tipo generico (C# 'is' operator/IL 'isinst') usato da Enumerable.OfType<T> non avrà mai esito positivo con gli elementi di tipi specificati, generando una sequenza vuota. L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi generici. @@ -924,12 +924,12 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing è supportato solo con l'attività non generica, non con un'attività<TResult>. Per usarlo con un oggetto Task<TResult>, eseguire prima il cast all'attività di base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureOption.SuppressThrowing è supportato solo con l'attività non generica @@ -3270,4 +3270,4 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf index c334ad1321..de39d84f78 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T>と Enumerable.OfType<T> が正常に機能するには、互換性のある型が必要です。 -Enumerable.Cast<T> によって返されるシーケンスによって使用されるジェネリック キャスト (IL 'unbox.any') は、指定された型の要素で実行時に InvalidCastException をスローします。 -Enumerable.OfType<T> で使用されるジェネリック型チェック (C# 'is' operator/IL 'isinst') は、指定された型の要素では成功しないため、空のシーケンスになります。 + Enumerable.Cast<T>と Enumerable.OfType<T> が正常に機能するには、互換性のある型が必要です。 +Enumerable.Cast<T> によって返されるシーケンスによって使用されるジェネリック キャスト (IL 'unbox.any') は、指定された型の要素で実行時に InvalidCastException をスローします。 +Enumerable.OfType<T> で使用されるジェネリック型チェック (C# 'is' operator/IL 'isinst') は、指定された型の要素では成功しないため、空のシーケンスになります。 拡大およびユーザー定義の変換は、ジェネリック型ではサポートされていません。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing は、Task<TResult> ではない、非ジェネリック Task での使用のみサポートされています。Task<TResult> で使用するには、まず、基本型の Task にキャストしてください。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing は、非ジェネリック Task での使用のみサポートされています @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf index 08f961f5bf..ef12247833 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> 및 Enumerable.OfType<T>가 제대로 작동하려면 호환되는 형식이 필요합니다. -Enumerable.Cast<T>에서 반환된 시퀀스에서 사용하는 일반 캐스트(IL 'unbox.any')는 지정된 형식의 요소에서 런타임에 InvalidCastException을 발생시킵니다. -Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' 연산자/IL 'isinst')는 지정된 형식의 요소로 성공하지 못하여 결과적으로 빈 시퀀스가 됩니다. + Enumerable.Cast<T> 및 Enumerable.OfType<T>가 제대로 작동하려면 호환되는 형식이 필요합니다. +Enumerable.Cast<T>에서 반환된 시퀀스에서 사용하는 일반 캐스트(IL 'unbox.any')는 지정된 형식의 요소에서 런타임에 InvalidCastException을 발생시킵니다. +Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' 연산자/IL 'isinst')는 지정된 형식의 요소로 성공하지 못하여 결과적으로 빈 시퀀스가 됩니다. 확대 및 사용자 정의 변환은 일반 형식에서 지원되지 않습니다. @@ -924,12 +924,12 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원되며 작업<TResult>은 지원되지 않습니다. 작업<TResult>과 함께 사용하려면 먼저 기본 작업에 캐스트합니다. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원됩니다. @@ -3270,4 +3270,4 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf index a11bd5416e..8eb082d0f8 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Elementy Enumerable.Cast<T> i Enumerable.OfType<T> wymagają oczekiwanych zgodnych typów. -Rzutowanie ogólne (IL „unbox.any”) używane przez sekwencję zwracaną przez metodę Enumerable.Cast<T> zgłosi wyjątek InvalidCastException w środowisku uruchomieniowym dla elementów określonych typów. -Sprawdzanie typu ogólnego (operator „is” języka C# /IL „isinst”) używane przez metodę Enumerable.OfType<T> nigdy nie powiedzie się z określonymi elementami typów, co spowoduje powstanie pustej sekwencji. + Elementy Enumerable.Cast<T> i Enumerable.OfType<T> wymagają oczekiwanych zgodnych typów. +Rzutowanie ogólne (IL „unbox.any”) używane przez sekwencję zwracaną przez metodę Enumerable.Cast<T> zgłosi wyjątek InvalidCastException w środowisku uruchomieniowym dla elementów określonych typów. +Sprawdzanie typu ogólnego (operator „is” języka C# /IL „isinst”) używane przez metodę Enumerable.OfType<T> nigdy nie powiedzie się z określonymi elementami typów, co spowoduje powstanie pustej sekwencji. Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w przypadku typów ogólnych. @@ -924,12 +924,12 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym, a nie zadaniem <TResult>. Aby użyć ją z zadaniem <TResult>, najpierw rzutuj na zadanie podstawowe. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym @@ -3270,4 +3270,4 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf index 5d95a9c691..cca829205f 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> e Enumerable.OfType<T> requerem tipos compatíveis para funcionar corretamente. -A conversão genérica (IL 'unbox.any') usada pela sequência retornada por Enumerable.Cast<T> lançará InvalidCastException em tempo de execução em elementos dos tipos especificados. -A verificação de tipo genérico (C# 'is' operator/IL 'isinst') usada por Enumerable.OfType<T> nunca terá êxito com elementos de tipos especificados, resultando em uma sequência vazia. + Enumerable.Cast<T> e Enumerable.OfType<T> requerem tipos compatíveis para funcionar corretamente. +A conversão genérica (IL 'unbox.any') usada pela sequência retornada por Enumerable.Cast<T> lançará InvalidCastException em tempo de execução em elementos dos tipos especificados. +A verificação de tipo genérico (C# 'is' operator/IL 'isinst') usada por Enumerable.OfType<T> nunca terá êxito com elementos de tipos especificados, resultando em uma sequência vazia. Ampliação e conversões definidas pelo usuário não são compatíveis com tipos genéricos. @@ -924,12 +924,12 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Só há suporte para ConfigureAwaitOptions.SuppressThrowing com a tarefa não genérica, não com uma Tarefa<TResult>. Para usá-lo com um Tarefa<TResult>, primeiro converta para o Tarefa base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task O ConfigureAwaitOptions.SuppressThrowing só é compatível com a tarefa não genérica @@ -3270,4 +3270,4 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf index 6efaa02602..42a2ce0a51 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Для нормальной работы Enumerable.Cast<T> и Enumerable.OfType<T> требуются совместимые типы. -Универсальное приведение (выражение промежуточного языка 'unbox.any'), используемое последовательностью, возвращенной enumerable.Cast<T>, вызовет исключение InvalidCastException во время выполнения для элементов указанных типов. -Проверка универсального типа (оператор C# 'is'/выражение промежуточного языка 'isinst'), используемая Enumerable.OfType<T>, никогда не будет выполнена успешно с элементами указанных типов, что приведет к получению пустой последовательности. + Для нормальной работы Enumerable.Cast<T> и Enumerable.OfType<T> требуются совместимые типы. +Универсальное приведение (выражение промежуточного языка 'unbox.any'), используемое последовательностью, возвращенной enumerable.Cast<T>, вызовет исключение InvalidCastException во время выполнения для элементов указанных типов. +Проверка универсального типа (оператор C# 'is'/выражение промежуточного языка 'isinst'), используемая Enumerable.OfType<T>, никогда не будет выполнена успешно с элементами указанных типов, что приведет к получению пустой последовательности. Расширяемые и определяемые пользователем преобразования не поддерживаются для универсальных типов. @@ -924,12 +924,12 @@ Widening and user defined conversions are not supported with generic types. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей, а не с задачей<TResult>. Чтобы использовать его с задачей<TResult>, сначала выполните приведение к базовой задаче. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей @@ -3270,4 +3270,4 @@ Widening and user defined conversions are not supported with generic types. - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf index ae89dc28a7..56a54ba0e3 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> ve Enumerable.OfType<T> metotları, beklendiği gibi çalışmaları için uyumlu türler gerektirir. -Enumerable.Cast<T> tarafından döndürülen dizi tarafından kullanılan genel tür dönüştürme (IL 'unbox.any'), belirtilen türdeki öğelerde çalışma zamanında InvalidCastException oluşturur. -Enumerable.OfType<T> tarafından kullanılan genel tür denetimi (C# 'is' işleci/IL 'isinst'), belirtilen türdeki öğelerle hiçbir zaman başarılı olamaz ve bu çağrı boş bir dizi ile sonuçlanır. + Enumerable.Cast<T> ve Enumerable.OfType<T> metotları, beklendiği gibi çalışmaları için uyumlu türler gerektirir. +Enumerable.Cast<T> tarafından döndürülen dizi tarafından kullanılan genel tür dönüştürme (IL 'unbox.any'), belirtilen türdeki öğelerde çalışma zamanında InvalidCastException oluşturur. +Enumerable.OfType<T> tarafından kullanılan genel tür denetimi (C# 'is' işleci/IL 'isinst'), belirtilen türdeki öğelerle hiçbir zaman başarılı olamaz ve bu çağrı boş bir dizi ile sonuçlanır. Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklenmez. @@ -924,12 +924,12 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing, Task<TResult> ile değil, yalnızca genel olmayan Task ile desteklenir. Bu işlevi Task<TResult> ile kullanmak için öncelikle türü temel Task olarak değiştirin. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing yalnızca genel olmayan Task ile desteklenir @@ -3270,4 +3270,4 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf index 6e2002f85a..3c3342cb37 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf @@ -588,12 +588,12 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T>和 Enumerable.OfType<T> 需要兼容类型才能正常工作。 -Enumerable.Cast<T> 返回的序列使用的泛型强制转换 (IL 'unbox.any') 将在运行时对指定类型的元素引发 InvalidCastException。 + Enumerable.Cast<T>和 Enumerable.OfType<T> 需要兼容类型才能正常工作。 +Enumerable.Cast<T> 返回的序列使用的泛型强制转换 (IL 'unbox.any') 将在运行时对指定类型的元素引发 InvalidCastException。 Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isinst') 将从不会成功与指定类型的元素一起使用,从而导致一个空序列。 泛型类型不支持扩大转换和用户定义的转换。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 仅支持用于非泛型任务,不可用于 Task<TResult>。若要将它用于 Task<TResult>,请先强制转换为基本任务。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task 只有非泛型任务才支持 ConfigureAwaitOptions.SuppressThrowing @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf index cfc294dbf0..d65344646c 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> 和 Enumerable.OfType<T> 需要相容的型別,以預期運作。 -Enumerable.Cast<T> 返回序列所使用的一般轉換 (IL 'unbox.any') 將在執行階段的指定型別元素上擲回 InvalidCastException。 -Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isinst') 永遠不會與指定的型別元素成功,因而產生空的順序。 + Enumerable.Cast<T> 和 Enumerable.OfType<T> 需要相容的型別,以預期運作。 +Enumerable.Cast<T> 返回序列所使用的一般轉換 (IL 'unbox.any') 將在執行階段的指定型別元素上擲回 InvalidCastException。 +Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isinst') 永遠不會與指定的型別元素成功,因而產生空的順序。 一般型別不支援擴大和使用者定義的轉換。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作,不支援 Task<TResult>。若要與 Task<TResult> 一起使用,請先強制型轉到基本任務。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作 @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md index b265ae757f..e336398c4e 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md @@ -2018,11 +2018,11 @@ Some built-in operators added in .NET 7 behave differently when overflowing than ## [CA2021](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021): Do not call Enumerable.Cast\ or Enumerable.OfType\ with incompatible types -Enumerable.Cast\ and Enumerable.OfType\ require compatible types to function expectedly. +Enumerable.Cast\ and Enumerable.OfType\ require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast\ will throw InvalidCastException at runtime on elements of the types specified. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast\ will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType\ will never succeed with elements of types specified, resulting in an empty sequence. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType\ will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. @@ -2564,7 +2564,7 @@ Generic math interfaces require the derived type itself to be used for the self ## [CA2261](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261): Do not use ConfigureAwaitOptions.SuppressThrowing with Task\ -The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. +The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. |Item|Value| |-|-| diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index e9e8855061..42a9961efc 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -4437,7 +4437,7 @@ "CA2261": { "id": "CA2261", "shortDescription": "Do not use ConfigureAwaitOptions.SuppressThrowing with Task", - "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", + "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", "defaultLevel": "warning", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261", "properties": { @@ -6815,4 +6815,4 @@ } } ] -} \ No newline at end of file +} From d42d4dd7bfc5053174e9eecd4e41aef86cbc33a4 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:04:03 -0800 Subject: [PATCH 2/5] Revert "fix grammar in CA2261 message" This reverts commit 88a390d0d53690ff0bbc96af09dc36dd220645d6. --- .../MicrosoftNetCoreAnalyzersResources.resx | 66 +++++++++---------- .../MicrosoftNetCoreAnalyzersResources.cs.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.de.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.es.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.fr.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.it.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ja.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ko.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.pl.xlf | 18 ++--- ...crosoftNetCoreAnalyzersResources.pt-BR.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.ru.xlf | 18 ++--- .../MicrosoftNetCoreAnalyzersResources.tr.xlf | 18 ++--- ...osoftNetCoreAnalyzersResources.zh-Hans.xlf | 16 ++--- ...osoftNetCoreAnalyzersResources.zh-Hant.xlf | 18 ++--- .../Microsoft.CodeAnalysis.NetAnalyzers.md | 8 +-- .../Microsoft.CodeAnalysis.NetAnalyzers.sarif | 4 +- 16 files changed, 155 insertions(+), 155 deletions(-) diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx index 20b6cbb758..979f75ff53 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx @@ -1,17 +1,17 @@  - @@ -1005,10 +1005,10 @@ Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult> - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum @@ -1707,9 +1707,9 @@ The 'ModuleInitializer' attribute should not be used in libraries - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. @@ -2096,4 +2096,4 @@ Widening and user defined conversions are not supported with generic types. Cache and reuse 'JsonSerializerOptions' instances - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf index 268ec4db50..6be439919e 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Metody Enumerable.Cast<T> a Enumerable.OfType<T> vyžadují k očekávané funkci kompatibilní typy. -Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou Enumerable.Cast<T> vyvolá výjimku InvalidCastException za běhu u prvků zadaných typů. - Ověření obecného typu (operátor is v jazyce C# /isinst převodního jazyka IL) metodou Enumerable.OfType<T> nebude nikdy úspěšné s prvky zadaných typů a výsledkem bude prázdná sekvence. + Metody Enumerable.Cast<T> a Enumerable.OfType<T> vyžadují k očekávané funkci kompatibilní typy. +Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou Enumerable.Cast<T> vyvolá výjimku InvalidCastException za běhu u prvků zadaných typů. + Ověření obecného typu (operátor is v jazyce C# /isinst převodního jazyka IL) metodou Enumerable.OfType<T> nebude nikdy úspěšné s prvky zadaných typů a výsledkem bude prázdná sekvence. Rozšíření a uživatelem definované převody se u obecných typů nepodporují. @@ -924,12 +924,12 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing se podporuje pouze u neobecných úloh, nikoli u Task<TResult>. Pokud ho chcete použít s task<TResult>, nejprve ho přetypujte na základní úlohu. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing se podporuje pouze s neobecnou úlohou. @@ -3270,4 +3270,4 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf index 1ee412ce39..de7796dcd6 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> und Enumerable.OfType<T> erfordern kompatible Typen, um ordnungsgemäß zu funktionieren. -Die generische Umwandlung (IL „unbox.any“), die der von der von Enumerable.Cast<T> zurückgegebenen Sequenz verwendet wird, löst zur Laufzeit bei Elementen der angegebenen Typen eine InvalidCastException-Ausnahme aus. -Die von Enumerable.OfType<T> verwendete generische Typüberprüfung (C# „is“-Operator/IL „isinst“) wird nie erfolgreich ausgeführt, wenn Elemente von Typen angegeben werden, die in einer leeren Sequenz resultieren. + Enumerable.Cast<T> und Enumerable.OfType<T> erfordern kompatible Typen, um ordnungsgemäß zu funktionieren. +Die generische Umwandlung (IL „unbox.any“), die der von der von Enumerable.Cast<T> zurückgegebenen Sequenz verwendet wird, löst zur Laufzeit bei Elementen der angegebenen Typen eine InvalidCastException-Ausnahme aus. +Die von Enumerable.OfType<T> verwendete generische Typüberprüfung (C# „is“-Operator/IL „isinst“) wird nie erfolgreich ausgeführt, wenn Elemente von Typen angegeben werden, die in einer leeren Sequenz resultieren. Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Typen nicht unterstützt. @@ -924,12 +924,12 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. "ConfigureResultitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task und nicht mit einem Task<TResult> unterstützt. Um es mit einem Task<TResult> zu verwenden, wandeln Sie zuerst in den Basistask um. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task "Configure OdbcitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task unterstützt. @@ -3270,4 +3270,4 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf index 2b556bc650..0a529da884 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> y Enumerable.OfType<T> requieren tipos compatibles para funcionar de manera esperada. -La conversión genérica ("unbox.any" de IL) usada por la secuencia devuelta por Enumerable.Cast<T> iniciará InvalidCastException en tiempo de ejecución en los elementos de los tipos especificados. -La comprobación de tipos genéricos (operador "is" de C# o "isinst" de IL) usada por Enumerable.OfType<T> nunca se completará correctamente con los elementos de tipos especificados, lo que provocará una secuencia vacía. + Enumerable.Cast<T> y Enumerable.OfType<T> requieren tipos compatibles para funcionar de manera esperada. +La conversión genérica ("unbox.any" de IL) usada por la secuencia devuelta por Enumerable.Cast<T> iniciará InvalidCastException en tiempo de ejecución en los elementos de los tipos especificados. +La comprobación de tipos genéricos (operador "is" de C# o "isinst" de IL) usada por Enumerable.OfType<T> nunca se completará correctamente con los elementos de tipos especificados, lo que provocará una secuencia vacía. La ampliación y las conversiones definidas por el usuario no se admiten con tipos genéricos. @@ -924,12 +924,12 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica, no con Task<TResult>. Para usarlo con Task<TResult>, convierta primero a Task base. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica @@ -3270,4 +3270,4 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf index 6f9b10aedd..0e0aac67c8 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> et Enumerable.OfType<T> nécessitent des types compatibles pour fonctionner normalement. -Le cast générique (IL 'unbox.any') utilisé par la séquence retournée par Enumerable.Cast<T> lève InvalidCastException au moment de l’exécution sur les éléments des types spécifiés. -La vérification de type générique (opérateur C# 'is'/IL 'isinst') utilisée par Enumerable.OfType<T> ne réussira jamais avec les éléments de types spécifiés, ce qui entraîne une séquence vide. + Enumerable.Cast<T> et Enumerable.OfType<T> nécessitent des types compatibles pour fonctionner normalement. +Le cast générique (IL 'unbox.any') utilisé par la séquence retournée par Enumerable.Cast<T> lève InvalidCastException au moment de l’exécution sur les éléments des types spécifiés. +La vérification de type générique (opérateur C# 'is'/IL 'isinst') utilisée par Enumerable.OfType<T> ne réussira jamais avec les éléments de types spécifiés, ce qui entraîne une séquence vide. Les conversions étendues et définies par l’utilisateur ne sont pas prises en charge avec les types génériques. @@ -924,12 +924,12 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique, et non avec une tâche Task<TResult>. Pour l’utiliser avec une tâche Task<TResult>, commencez par effectuer un cast vers la tâche de base. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique @@ -3270,4 +3270,4 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf index 8378feb7cc..2d2d06ebdc 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> e Enumerable.OfType<T> richiedono tipi compatibili per funzionare correttamente. -Il cast generico (IL 'unbox.any') usato dalla sequenza restituita da Enumerable.Cast<T> genererà InvalidCastException in fase di esecuzione sugli elementi dei tipi specificati. -Il controllo di tipo generico (C# 'is' operator/IL 'isinst') usato da Enumerable.OfType<T> non avrà mai esito positivo con gli elementi di tipi specificati, generando una sequenza vuota. + Enumerable.Cast<T> e Enumerable.OfType<T> richiedono tipi compatibili per funzionare correttamente. +Il cast generico (IL 'unbox.any') usato dalla sequenza restituita da Enumerable.Cast<T> genererà InvalidCastException in fase di esecuzione sugli elementi dei tipi specificati. +Il controllo di tipo generico (C# 'is' operator/IL 'isinst') usato da Enumerable.OfType<T> non avrà mai esito positivo con gli elementi di tipi specificati, generando una sequenza vuota. L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi generici. @@ -924,12 +924,12 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing è supportato solo con l'attività non generica, non con un'attività<TResult>. Per usarlo con un oggetto Task<TResult>, eseguire prima il cast all'attività di base. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureOption.SuppressThrowing è supportato solo con l'attività non generica @@ -3270,4 +3270,4 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf index de39d84f78..c334ad1321 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T>と Enumerable.OfType<T> が正常に機能するには、互換性のある型が必要です。 -Enumerable.Cast<T> によって返されるシーケンスによって使用されるジェネリック キャスト (IL 'unbox.any') は、指定された型の要素で実行時に InvalidCastException をスローします。 -Enumerable.OfType<T> で使用されるジェネリック型チェック (C# 'is' operator/IL 'isinst') は、指定された型の要素では成功しないため、空のシーケンスになります。 + Enumerable.Cast<T>と Enumerable.OfType<T> が正常に機能するには、互換性のある型が必要です。 +Enumerable.Cast<T> によって返されるシーケンスによって使用されるジェネリック キャスト (IL 'unbox.any') は、指定された型の要素で実行時に InvalidCastException をスローします。 +Enumerable.OfType<T> で使用されるジェネリック型チェック (C# 'is' operator/IL 'isinst') は、指定された型の要素では成功しないため、空のシーケンスになります。 拡大およびユーザー定義の変換は、ジェネリック型ではサポートされていません。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing は、Task<TResult> ではない、非ジェネリック Task での使用のみサポートされています。Task<TResult> で使用するには、まず、基本型の Task にキャストしてください。 - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing は、非ジェネリック Task での使用のみサポートされています @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf index ef12247833..08f961f5bf 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> 및 Enumerable.OfType<T>가 제대로 작동하려면 호환되는 형식이 필요합니다. -Enumerable.Cast<T>에서 반환된 시퀀스에서 사용하는 일반 캐스트(IL 'unbox.any')는 지정된 형식의 요소에서 런타임에 InvalidCastException을 발생시킵니다. -Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' 연산자/IL 'isinst')는 지정된 형식의 요소로 성공하지 못하여 결과적으로 빈 시퀀스가 됩니다. + Enumerable.Cast<T> 및 Enumerable.OfType<T>가 제대로 작동하려면 호환되는 형식이 필요합니다. +Enumerable.Cast<T>에서 반환된 시퀀스에서 사용하는 일반 캐스트(IL 'unbox.any')는 지정된 형식의 요소에서 런타임에 InvalidCastException을 발생시킵니다. +Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' 연산자/IL 'isinst')는 지정된 형식의 요소로 성공하지 못하여 결과적으로 빈 시퀀스가 됩니다. 확대 및 사용자 정의 변환은 일반 형식에서 지원되지 않습니다. @@ -924,12 +924,12 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원되며 작업<TResult>은 지원되지 않습니다. 작업<TResult>과 함께 사용하려면 먼저 기본 작업에 캐스트합니다. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원됩니다. @@ -3270,4 +3270,4 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf index 8eb082d0f8..a11bd5416e 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Elementy Enumerable.Cast<T> i Enumerable.OfType<T> wymagają oczekiwanych zgodnych typów. -Rzutowanie ogólne (IL „unbox.any”) używane przez sekwencję zwracaną przez metodę Enumerable.Cast<T> zgłosi wyjątek InvalidCastException w środowisku uruchomieniowym dla elementów określonych typów. -Sprawdzanie typu ogólnego (operator „is” języka C# /IL „isinst”) używane przez metodę Enumerable.OfType<T> nigdy nie powiedzie się z określonymi elementami typów, co spowoduje powstanie pustej sekwencji. + Elementy Enumerable.Cast<T> i Enumerable.OfType<T> wymagają oczekiwanych zgodnych typów. +Rzutowanie ogólne (IL „unbox.any”) używane przez sekwencję zwracaną przez metodę Enumerable.Cast<T> zgłosi wyjątek InvalidCastException w środowisku uruchomieniowym dla elementów określonych typów. +Sprawdzanie typu ogólnego (operator „is” języka C# /IL „isinst”) używane przez metodę Enumerable.OfType<T> nigdy nie powiedzie się z określonymi elementami typów, co spowoduje powstanie pustej sekwencji. Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w przypadku typów ogólnych. @@ -924,12 +924,12 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym, a nie zadaniem <TResult>. Aby użyć ją z zadaniem <TResult>, najpierw rzutuj na zadanie podstawowe. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym @@ -3270,4 +3270,4 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf index cca829205f..5d95a9c691 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> e Enumerable.OfType<T> requerem tipos compatíveis para funcionar corretamente. -A conversão genérica (IL 'unbox.any') usada pela sequência retornada por Enumerable.Cast<T> lançará InvalidCastException em tempo de execução em elementos dos tipos especificados. -A verificação de tipo genérico (C# 'is' operator/IL 'isinst') usada por Enumerable.OfType<T> nunca terá êxito com elementos de tipos especificados, resultando em uma sequência vazia. + Enumerable.Cast<T> e Enumerable.OfType<T> requerem tipos compatíveis para funcionar corretamente. +A conversão genérica (IL 'unbox.any') usada pela sequência retornada por Enumerable.Cast<T> lançará InvalidCastException em tempo de execução em elementos dos tipos especificados. +A verificação de tipo genérico (C# 'is' operator/IL 'isinst') usada por Enumerable.OfType<T> nunca terá êxito com elementos de tipos especificados, resultando em uma sequência vazia. Ampliação e conversões definidas pelo usuário não são compatíveis com tipos genéricos. @@ -924,12 +924,12 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Só há suporte para ConfigureAwaitOptions.SuppressThrowing com a tarefa não genérica, não com uma Tarefa<TResult>. Para usá-lo com um Tarefa<TResult>, primeiro converta para o Tarefa base. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task O ConfigureAwaitOptions.SuppressThrowing só é compatível com a tarefa não genérica @@ -3270,4 +3270,4 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf index 42a2ce0a51..6efaa02602 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Для нормальной работы Enumerable.Cast<T> и Enumerable.OfType<T> требуются совместимые типы. -Универсальное приведение (выражение промежуточного языка 'unbox.any'), используемое последовательностью, возвращенной enumerable.Cast<T>, вызовет исключение InvalidCastException во время выполнения для элементов указанных типов. -Проверка универсального типа (оператор C# 'is'/выражение промежуточного языка 'isinst'), используемая Enumerable.OfType<T>, никогда не будет выполнена успешно с элементами указанных типов, что приведет к получению пустой последовательности. + Для нормальной работы Enumerable.Cast<T> и Enumerable.OfType<T> требуются совместимые типы. +Универсальное приведение (выражение промежуточного языка 'unbox.any'), используемое последовательностью, возвращенной enumerable.Cast<T>, вызовет исключение InvalidCastException во время выполнения для элементов указанных типов. +Проверка универсального типа (оператор C# 'is'/выражение промежуточного языка 'isinst'), используемая Enumerable.OfType<T>, никогда не будет выполнена успешно с элементами указанных типов, что приведет к получению пустой последовательности. Расширяемые и определяемые пользователем преобразования не поддерживаются для универсальных типов. @@ -924,12 +924,12 @@ Widening and user defined conversions are not supported with generic types. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей, а не с задачей<TResult>. Чтобы использовать его с задачей<TResult>, сначала выполните приведение к базовой задаче. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей @@ -3270,4 +3270,4 @@ Widening and user defined conversions are not supported with generic types. - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf index 56a54ba0e3..ae89dc28a7 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> ve Enumerable.OfType<T> metotları, beklendiği gibi çalışmaları için uyumlu türler gerektirir. -Enumerable.Cast<T> tarafından döndürülen dizi tarafından kullanılan genel tür dönüştürme (IL 'unbox.any'), belirtilen türdeki öğelerde çalışma zamanında InvalidCastException oluşturur. -Enumerable.OfType<T> tarafından kullanılan genel tür denetimi (C# 'is' işleci/IL 'isinst'), belirtilen türdeki öğelerle hiçbir zaman başarılı olamaz ve bu çağrı boş bir dizi ile sonuçlanır. + Enumerable.Cast<T> ve Enumerable.OfType<T> metotları, beklendiği gibi çalışmaları için uyumlu türler gerektirir. +Enumerable.Cast<T> tarafından döndürülen dizi tarafından kullanılan genel tür dönüştürme (IL 'unbox.any'), belirtilen türdeki öğelerde çalışma zamanında InvalidCastException oluşturur. +Enumerable.OfType<T> tarafından kullanılan genel tür denetimi (C# 'is' işleci/IL 'isinst'), belirtilen türdeki öğelerle hiçbir zaman başarılı olamaz ve bu çağrı boş bir dizi ile sonuçlanır. Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklenmez. @@ -924,12 +924,12 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing, Task<TResult> ile değil, yalnızca genel olmayan Task ile desteklenir. Bu işlevi Task<TResult> ile kullanmak için öncelikle türü temel Task olarak değiştirin. - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing yalnızca genel olmayan Task ile desteklenir @@ -3270,4 +3270,4 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf index 3c3342cb37..6e2002f85a 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf @@ -588,12 +588,12 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T>和 Enumerable.OfType<T> 需要兼容类型才能正常工作。 -Enumerable.Cast<T> 返回的序列使用的泛型强制转换 (IL 'unbox.any') 将在运行时对指定类型的元素引发 InvalidCastException。 + Enumerable.Cast<T>和 Enumerable.OfType<T> 需要兼容类型才能正常工作。 +Enumerable.Cast<T> 返回的序列使用的泛型强制转换 (IL 'unbox.any') 将在运行时对指定类型的元素引发 InvalidCastException。 Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isinst') 将从不会成功与指定类型的元素一起使用,从而导致一个空序列。 泛型类型不支持扩大转换和用户定义的转换。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 仅支持用于非泛型任务,不可用于 Task<TResult>。若要将它用于 Task<TResult>,请先强制转换为基本任务。 - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task 只有非泛型任务才支持 ConfigureAwaitOptions.SuppressThrowing @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - + \ No newline at end of file diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf index d65344646c..cfc294dbf0 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf @@ -588,13 +588,13 @@ - Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. + Enumerable.Cast<T> and Enumerable.OfType<T> require compatible types to function expectedly. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast<T> will throw InvalidCastException at runtime on elements of the types specified. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType<T> will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. - Enumerable.Cast<T> 和 Enumerable.OfType<T> 需要相容的型別,以預期運作。 -Enumerable.Cast<T> 返回序列所使用的一般轉換 (IL 'unbox.any') 將在執行階段的指定型別元素上擲回 InvalidCastException。 -Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isinst') 永遠不會與指定的型別元素成功,因而產生空的順序。 + Enumerable.Cast<T> 和 Enumerable.OfType<T> 需要相容的型別,以預期運作。 +Enumerable.Cast<T> 返回序列所使用的一般轉換 (IL 'unbox.any') 將在執行階段的指定型別元素上擲回 InvalidCastException。 +Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isinst') 永遠不會與指定的型別元素成功,因而產生空的順序。 一般型別不支援擴大和使用者定義的轉換。 @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作,不支援 Task<TResult>。若要與 Task<TResult> 一起使用,請先強制型轉到基本任務。 - The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作 @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - + \ No newline at end of file diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md index e336398c4e..b265ae757f 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md @@ -2018,11 +2018,11 @@ Some built-in operators added in .NET 7 behave differently when overflowing than ## [CA2021](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021): Do not call Enumerable.Cast\ or Enumerable.OfType\ with incompatible types -Enumerable.Cast\ and Enumerable.OfType\ require compatible types to function expectedly. +Enumerable.Cast\ and Enumerable.OfType\ require compatible types to function expectedly. -The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast\ will throw InvalidCastException at runtime on elements of the types specified. +The generic cast (IL 'unbox.any') used by the sequence returned by Enumerable.Cast\ will throw InvalidCastException at runtime on elements of the types specified. -The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType\ will never succeed with elements of types specified, resulting in an empty sequence. +The generic type check (C# 'is' operator/IL 'isinst') used by Enumerable.OfType\ will never succeed with elements of types specified, resulting in an empty sequence. Widening and user defined conversions are not supported with generic types. @@ -2564,7 +2564,7 @@ Generic math interfaces require the derived type itself to be used for the self ## [CA2261](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261): Do not use ConfigureAwaitOptions.SuppressThrowing with Task\ -The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. +The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. |Item|Value| |-|-| diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index 42a9961efc..e9e8855061 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -4437,7 +4437,7 @@ "CA2261": { "id": "CA2261", "shortDescription": "Do not use ConfigureAwaitOptions.SuppressThrowing with Task", - "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", + "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", "defaultLevel": "warning", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261", "properties": { @@ -6815,4 +6815,4 @@ } } ] -} +} \ No newline at end of file From fa46662e26e917b3217fceb0521687c5c5677574 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Thu, 16 Nov 2023 16:04:40 -0800 Subject: [PATCH 3/5] fix grammar in CA2261 message --- .../MicrosoftNetCoreAnalyzersResources.resx | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.de.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.es.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.it.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf | 6 +++--- .../xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf | 6 +++--- src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md | 2 +- src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif | 4 ++-- 16 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx index 979f75ff53..067f418dd2 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/MicrosoftNetCoreAnalyzersResources.resx @@ -1005,10 +1005,10 @@ Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult> - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum @@ -2096,4 +2096,4 @@ Widening and user defined conversions are not supported with generic types. Cache and reuse 'JsonSerializerOptions' instances - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf index 6be439919e..a88190f0a6 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.cs.xlf @@ -924,12 +924,12 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing se podporuje pouze u neobecných úloh, nikoli u Task<TResult>. Pokud ho chcete použít s task<TResult>, nejprve ho přetypujte na základní úlohu. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing se podporuje pouze s neobecnou úlohou. @@ -3270,4 +3270,4 @@ Obecné přetypování (IL unbox.any) používané sekvencí vrácenou metodou E - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf index de7796dcd6..37ccf5222b 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.de.xlf @@ -924,12 +924,12 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. "ConfigureResultitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task und nicht mit einem Task<TResult> unterstützt. Um es mit einem Task<TResult> zu verwenden, wandeln Sie zuerst in den Basistask um. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task "Configure OdbcitOptions.SuppressInternewing" wird nur mit dem nicht generischen Task unterstützt. @@ -3270,4 +3270,4 @@ Erweiterungen und benutzerdefinierte Konvertierungen werden bei generischen Type - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf index 0a529da884..6f96d6df82 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.es.xlf @@ -924,12 +924,12 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica, no con Task<TResult>. Para usarlo con Task<TResult>, convierta primero a Task base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing solo se admite con Task no genérica @@ -3270,4 +3270,4 @@ La ampliación y las conversiones definidas por el usuario no se admiten con tip - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf index 0e0aac67c8..acda10f59a 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.fr.xlf @@ -924,12 +924,12 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique, et non avec une tâche Task<TResult>. Pour l’utiliser avec une tâche Task<TResult>, commencez par effectuer un cast vers la tâche de base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing est uniquement pris en charge avec la tâche non générique @@ -3270,4 +3270,4 @@ Les conversions étendues et définies par l’utilisateur ne sont pas prises en - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf index 2d2d06ebdc..58606c4cf4 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.it.xlf @@ -924,12 +924,12 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing è supportato solo con l'attività non generica, non con un'attività<TResult>. Per usarlo con un oggetto Task<TResult>, eseguire prima il cast all'attività di base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureOption.SuppressThrowing è supportato solo con l'attività non generica @@ -3270,4 +3270,4 @@ L'ampliamento e le conversioni definite dall'utente non sono supportate con tipi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf index c334ad1321..10827caab8 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ja.xlf @@ -924,12 +924,12 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing は、Task<TResult> ではない、非ジェネリック Task での使用のみサポートされています。Task<TResult> で使用するには、まず、基本型の Task にキャストしてください。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing は、非ジェネリック Task での使用のみサポートされています @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> で使用されるジェネリック型チェック ( - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf index 08f961f5bf..ecfc843398 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ko.xlf @@ -924,12 +924,12 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원되며 작업<TResult>은 지원되지 않습니다. 작업<TResult>과 함께 사용하려면 먼저 기본 작업에 캐스트합니다. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing은 일반적이지 않은 작업에서만 지원됩니다. @@ -3270,4 +3270,4 @@ Enumerable.OfType<T>에서 사용하는 제네릭 형식 검사(C# 'is' - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf index a11bd5416e..bf7fec2849 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pl.xlf @@ -924,12 +924,12 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym, a nie zadaniem <TResult>. Aby użyć ją z zadaniem <TResult>, najpierw rzutuj na zadanie podstawowe. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task Metoda ConfigureAwaitOptions.SuppressThrowing jest obsługiwana tylko z zadaniem niegenerycznym @@ -3270,4 +3270,4 @@ Konwersje poszerzane i zdefiniowane przez użytkownika nie są obsługiwane w pr - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf index 5d95a9c691..244aa1fa78 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.pt-BR.xlf @@ -924,12 +924,12 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. Só há suporte para ConfigureAwaitOptions.SuppressThrowing com a tarefa não genérica, não com uma Tarefa<TResult>. Para usá-lo com um Tarefa<TResult>, primeiro converta para o Tarefa base. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task O ConfigureAwaitOptions.SuppressThrowing só é compatível com a tarefa não genérica @@ -3270,4 +3270,4 @@ Ampliação e conversões definidas pelo usuário não são compatíveis com tip - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf index 6efaa02602..ef56217879 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.ru.xlf @@ -924,12 +924,12 @@ Widening and user defined conversions are not supported with generic types. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей, а не с задачей<TResult>. Чтобы использовать его с задачей<TResult>, сначала выполните приведение к базовой задаче. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing поддерживается только с неуниверсальной задачей @@ -3270,4 +3270,4 @@ Widening and user defined conversions are not supported with generic types. - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf index ae89dc28a7..4ae7a21721 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.tr.xlf @@ -924,12 +924,12 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing, Task<TResult> ile değil, yalnızca genel olmayan Task ile desteklenir. Bu işlevi Task<TResult> ile kullanmak için öncelikle türü temel Task olarak değiştirin. - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing yalnızca genel olmayan Task ile desteklenir @@ -3270,4 +3270,4 @@ Genel türlerde genişletme ve kullanıcı tanımlı dönüştürmeler desteklen - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf index 6e2002f85a..17bbf68ddc 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hans.xlf @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 仅支持用于非泛型任务,不可用于 Task<TResult>。若要将它用于 Task<TResult>,请先强制转换为基本任务。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task 只有非泛型任务才支持 ConfigureAwaitOptions.SuppressThrowing @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的泛型类型检查 (C# 'is' operator/IL 'isi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf index cfc294dbf0..0c106c5855 100644 --- a/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf +++ b/src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/xlf/MicrosoftNetCoreAnalyzersResources.zh-Hant.xlf @@ -924,12 +924,12 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task<TResult>. To use it with a Task<TResult>, first cast to the base Task. ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作,不支援 Task<TResult>。若要與 Task<TResult> 一起使用,請先強制型轉到基本任務。 - The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task + The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task ConfigureAwaitOptions.SuppressThrowing 只支援非一般工作 @@ -3270,4 +3270,4 @@ Enumerable.OfType<T> 使用的一般型別檢查 (C# 'is' operator/IL 'isi - \ No newline at end of file + diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md index b265ae757f..d745b148fa 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.md @@ -2564,7 +2564,7 @@ Generic math interfaces require the derived type itself to be used for the self ## [CA2261](https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261): Do not use ConfigureAwaitOptions.SuppressThrowing with Task\ -The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. +The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task\. To use it with a Task\, first cast to the base Task. |Item|Value| |-|-| diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index e9e8855061..42a9961efc 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -4437,7 +4437,7 @@ "CA2261": { "id": "CA2261", "shortDescription": "Do not use ConfigureAwaitOptions.SuppressThrowing with Task", - "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", + "fullDescription": "The ConfigureAwaitOptions.SuppressThrowing option is only supported with the non-generic Task, not a Task. To use it with a Task, first cast to the base Task.", "defaultLevel": "warning", "helpUri": "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2261", "properties": { @@ -6815,4 +6815,4 @@ } } ] -} \ No newline at end of file +} From 8223f0254f2f1ddf143db082748f2093b6c70cc2 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:42:13 -0800 Subject: [PATCH 4/5] update rules missing docs --- src/NetAnalyzers/RulesMissingDocumentation.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/NetAnalyzers/RulesMissingDocumentation.md b/src/NetAnalyzers/RulesMissingDocumentation.md index 118c7c6d88..0c3d9d554b 100644 --- a/src/NetAnalyzers/RulesMissingDocumentation.md +++ b/src/NetAnalyzers/RulesMissingDocumentation.md @@ -2,18 +2,5 @@ Rule ID | Missing Help Link | Title | --------|-------------------|-------| -CA1510 | | Use ArgumentNullException throw helper | -CA1511 | | Use ArgumentException throw helper | -CA1512 | | Use ArgumentOutOfRangeException throw helper | -CA1513 | | Use ObjectDisposedException throw helper | CA1515 | | Consider making public types internal | -CA1856 | | Incorrect usage of ConstantExpected attribute | -CA1857 | | A constant is expected for the parameter | -CA1862 | | Use the 'StringComparison' method overloads to perform case-insensitive string comparisons | -CA1863 | | Use 'CompositeFormat' | -CA1865 | | Use char overload | -CA1866 | | Use char overload | -CA1867 | | Use char overload | -CA2021 | | Do not call Enumerable.Cast\ or Enumerable.OfType\ with incompatible types | -CA2261 | | Do not use ConfigureAwaitOptions.SuppressThrowing with Task\ | CA2262 | | Set 'MaxResponseHeadersLength' properly | From 33a90d0fb47ce29252b813cff97058872a502ec3 Mon Sep 17 00:00:00 2001 From: Manish Vasani Date: Mon, 4 Dec 2023 09:10:16 +0530 Subject: [PATCH 5/5] Edit from msbuild pack command --- src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif index 42a9961efc..868a66e202 100644 --- a/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif +++ b/src/NetAnalyzers/Microsoft.CodeAnalysis.NetAnalyzers.sarif @@ -6815,4 +6815,4 @@ } } ] -} +} \ No newline at end of file