Skip to content

Commit

Permalink
Improving the message of PreferIsEmptyOverCountMessage (CA1836): (#4210)
Browse files Browse the repository at this point in the history
old  : Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items
new: Prefer 'IsEmpty' over 'Count' to determine whether the object is empty.

Co-authored-by: Juchli Bruno Lorenz <bruno.lorenz.juchli@erowa.com>
  • Loading branch information
BrunoJuchli and Juchli Bruno Lorenz committed Dec 9, 2020
1 parent c07c1bc commit 690be17
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@
<value>For determining whether the object contains or not any items, prefer using 'IsEmpty' property rather than retrieving the number of items from the 'Count' property and comparing it to 0 or 1.</value>
</data>
<data name="PreferIsEmptyOverCountMessage" xml:space="preserve">
<value>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</value>
<value>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</value>
</data>
<data name="PreferIsEmptyOverCountTitle" xml:space="preserve">
<value>Prefer IsEmpty over Count</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Při zjišťování, jestli objekt obsahuje nějaké položky, používejte spíše než Count vlastnost IsEmpty.</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Při zjišťování, jestli objekt obsahuje nějaké položky, používejte spíše než Count vlastnost IsEmpty.</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Verwenden Sie anstelle von "Count" die Eigenschaft "IsEmpty", um festzulegen, ob das Objekt Elemente enthält oder nicht.</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Verwenden Sie anstelle von "Count" die Eigenschaft "IsEmpty", um festzulegen, ob das Objekt Elemente enthält oder nicht.</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Elija "IsEmpty" en vez de "Count" para determinar si el objeto contiene o no elementos.</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Elija "IsEmpty" en vez de "Count" para determinar si el objeto contiene o no elementos.</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Préférez 'IsEmpty' à 'Count' pour déterminer si l'objet contient ou non des éléments</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Préférez 'IsEmpty' à 'Count' pour déterminer si l'objet contient ou non des éléments</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Preferire 'IsEmpty' a 'Count' per determinare se l'oggetto contiene o meno elementi</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Preferire 'IsEmpty' a 'Count' per determinare se l'oggetto contiene o meno elementi</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">オブジェクトに項目が含まれているかどうかを判断するには、'Count' より 'IsEmpty' を優先してください</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">オブジェクトに項目が含まれているかどうかを判断するには、'Count' より 'IsEmpty' を優先してください</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">개체에 항목이 포함되어 있는지 확인하려면 'Count' 대신 'IsEmpty'를 사용하세요.</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">개체에 항목이 포함되어 있는지 확인하려면 'Count' 대신 'IsEmpty'를 사용하세요.</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Preferuj właściwość „IsEmpty” przed właściwością „Count” do określania, czy obiekt zawiera elementy</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Preferuj właściwość „IsEmpty” przed właściwością „Count” do określania, czy obiekt zawiera elementy</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Preferir 'IsEmpty' em vez de 'Count' para determinar se o objeto contém ou não contém itens</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Preferir 'IsEmpty' em vez de 'Count' para determinar se o objeto contém ou não contém itens</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Старайтесь использовать "IsEmpty" вместо "Count", чтобы определить, содержит ли объект другие элементы</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Старайтесь использовать "IsEmpty" вместо "Count", чтобы определить, содержит ли объект другие элементы</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">Nesnenin öğe içerip içermediğini belirlemek için 'Count' yerine 'IsEmpty' tercih edin</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">Nesnenin öğe içerip içermediğini belirlemek için 'Count' yerine 'IsEmpty' tercih edin</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">最好使用 "IsEmpty" (而不是 "Count")来确定对象是否包含项</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">最好使用 "IsEmpty" (而不是 "Count")来确定对象是否包含项</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1608,8 +1608,8 @@
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountMessage">
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object contains or not any items</source>
<target state="translated">若要判斷物件是否包含項目,建議使用 'IsEmpty',而不要使用 'Count'</target>
<source>Prefer 'IsEmpty' over 'Count' to determine whether the object is empty</source>
<target state="needs-review-translation">若要判斷物件是否包含項目,建議使用 'IsEmpty',而不要使用 'Count'</target>
<note />
</trans-unit>
<trans-unit id="PreferIsEmptyOverCountTitle">
Expand Down

0 comments on commit 690be17

Please sign in to comment.