{"id":296079,"date":"2019-12-19T15:00:27","date_gmt":"2019-12-19T15:00:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296079"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296079","title":{"rendered":"\u0422\u043e\u043f 10 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 C# \u0437\u0430 2019 \u0433\u043e\u0434"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481178\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/970\/122\/d8c\/970122d8c4434832fba26edb674ff23d.png\" alt=\"Picture 1\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u043c \u0432\u0441\u0435\u0445 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0431\u0430\u0433\u043e\u0432. \u0423\u0436\u0435 \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442 \u041d\u043e\u0432\u044b\u0439 \u0433\u043e\u0434, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0432\u0435\u0441\u0442\u0438 \u0438\u0442\u043e\u0433\u0438 \u0433\u043e\u0434\u0430 \u0443\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e. \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u2014 \u0440\u0435\u0439\u0442\u0438\u043d\u0433 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 PVS-Studio \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 C# \u0437\u0430 2019 \u0433\u043e\u0434. \u0413\u043e\u0442\u043e\u0432\u044b? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0414\u0435\u0441\u044f\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0417\u0430\u043f\u0443\u0442\u0430\u0442\u044c \u0432\u0441\u0435\u0445\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3066\/\">V3066<\/a> Possible incorrect order of arguments passed to &#8216;AdjustCellBorderStyle&#8217; method: &#8216;isFirstDisplayedRow&#8217; and &#8216;isFirstDisplayedColumn&#8217;. DataGridViewComboBoxCell.cs 1934  <\/p>\n<pre><code class=\"cs\">protected override void OnMouseMove(DataGridViewCellMouseEventArgs e) {   ....   dgvabsEffective = AdjustCellBorderStyle(     DataGridView.AdvancedCellBorderStyle,     dgvabsPlaceholder,     singleVerticalBorderAdded,     singleHorizontalBorderAdded,     isFirstDisplayedRow,      \/\/ &lt;=     isFirstDisplayedColumn);  \/\/ &lt;=   .... }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0653\/\">WinForms: \u043e\u0448\u0438\u0431\u043a\u0438, \u0425\u043e\u043b\u043c\u0441<\/a>&#171;. \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0435\u0442\u043e\u0434 \u0434\u0432\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0431\u044b\u043b\u0438 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d\u044b \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 <i>AdjustCellBorderStyle<\/i>:  <\/p>\n<pre><code class=\"cs\">public virtual DataGridViewAdvancedBorderStyle AdjustCellBorderStyle(   DataGridViewAdvancedBorderStyledataGridViewAdvancedBorderStyleInput,   DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder,   bool singleVerticalBorderAdded,   bool singleHorizontalBorderAdded,   bool isFirstDisplayedColumn,   bool isFirstDisplayedRow) {   .... }<\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0440\u0430\u0432. \u0427\u0430\u0441\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u041d\u043e \u043d\u0435 \u043f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u0430 <i>bool<\/i>. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0435: \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u00abSwap\u00bb \u0438\u043b\u0438 \u00abReverse\u00bb. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435, \u0442\u0430\u043a \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u0441\u043b\u043e\u0436\u043d\u043e: \u043b\u044e\u0434\u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u044b \u00ab\u0441\u0442\u0440\u043e\u043a\u0430\/\u0441\u0442\u043e\u043b\u0431\u0435\u0446\u00bb.<\/p>\n<h2>\u0414\u0435\u0432\u044f\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0440\u044f\u0434\u043e\u043c\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3110\/\">V3110<\/a> Possible infinite recursion inside &#8216;TryValidateModel&#8217; method. PrefixedModuleUpdater.cs 48  <\/p>\n<pre><code class=\"cs\">public bool TryValidateModel(object model, string prefix) {   return TryValidateModel(model, Prefix(prefix)); }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0681\/\">\u0418\u0449\u0435\u043c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435 Orchard CMS<\/a>&#171;. \u0414\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0449\u0430\u044f \u043a \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438. \u0414\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u043e\u0433\u043b\u0430 \u0431\u044b\u0442\u044c \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0430 \u044d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0443 \u043c\u0435\u0442\u043e\u0434\u0430 <i>TryValidateModel<\/i>:  <\/p>\n<pre><code class=\"cs\">public bool TryValidateModel(object model) {   return _updateModel.TryValidateModel(model); }<\/code><\/pre>\n<p>  \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u0437\u043e\u0432 \u0432\u0438\u0434\u0430:  <\/p>\n<pre><code class=\"cs\">public bool TryValidateModel(object model, string prefix) {   return _updateModel.TryValidateModel(model, Prefix(prefix)); }<\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f, \u0442\u0430\u043a \u043a\u0430\u043a <i>_updateModel<\/i> \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <i>IUpdateModel<\/i>, \u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0441 \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <i>IUpdateModel<\/i>.<\/p>\n<h2>\u0412\u043e\u0441\u044c\u043c\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439, \u043d\u0430\u0439\u0434\u0438\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3091\/\">V3091<\/a> Empirical analysis. It is possible that a typo is present inside the string literal: \u00abManagement Group Id\u00bb. The &#8216;Id&#8217; word is suspicious. Constants.cs 36  <\/p>\n<pre><code class=\"cs\">public class HelpMessages {   public const string SubscriptionId = \"Subscription Id of the subscription                                         associated with the management\";   public const string GroupId = \"Management Group Id\";       \/\/ &lt;=   public const string Recurse = \"Recursively list the children of the                                  management group\";   public const string ParentId = \"Parent Id of the management group\";   public const string GroupName = \"Management Group Id\";     \/\/ &lt;=   public const string DisplayName = \"Display Name of the management group\";   public const string Expand = \"Expand the output to list the children of the                                 management group\";   public const string Force = \"Force the action and skip confirmations\";   public const string InputObject = \"Input Object from the Get call\";   public const string ParentObject = \"Parent Object\"; }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0678\/\">Azure PowerShell: \u00ab\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0431\u0435\u0437\u0432\u0440\u0435\u0434\u0435\u043d<\/a>\u00bb. \u0410\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0437\u0430\u043f\u043e\u0434\u043e\u0437\u0440\u0438\u043b, \u0447\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443 <i>GroupName <\/i> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u043e\u0439. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0442\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 <i>\u00abManagement Group Name\u00bb<\/i>. \u0422\u0440\u0443\u0434\u043d\u043e \u0441\u0443\u0434\u0438\u0442\u044c \u043e \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438, \u043d\u043e \u043e\u043d\u0430 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0440\u0435\u0434\u043a\u0430\u044f \u0438 \u0442\u0440\u0443\u0434\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f.<\/p>\n<h2>\u0421\u0435\u0434\u044c\u043c\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u041f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0434\u043e\u0433\u043b\u044f\u0434\u0435\u043b\u0438\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3078\/\">V3078<\/a> Original sorting order will be lost after repetitive call to &#8216;OrderBy&#8217; method. Use &#8216;ThenBy&#8217; method to preserve the original sorting. GridModel.Selection.cs 107  <\/p>\n<pre><code class=\"cs\">internal partial class GridModel {   private void BuildCellSelectionRegions(....)   {     ....     this.MergeCellSelectionRegions(selectedItemsInView         .OrderBy(c =&gt; c.Column.ItemInfo.LayoutInfo.Line)         .OrderBy(c =&gt; c.RowItemInfo.LayoutInfo.Line));     } }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0677\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 Telerik UI for UWP \u0434\u043b\u044f \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 PVS-Studio<\/a>&#171;. \u0412\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <i>OrderBy<\/i> \u0434\u043b\u044f \u0443\u0436\u0435 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0442\u0435\u0440\u044f\u043d. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <i>ThenBy<\/i>:  <\/p>\n<pre><code class=\"cs\">this.MergeCellSelectionRegions(selectedItemsInView     .OrderBy(c =&gt; c.Column.ItemInfo.LayoutInfo.Line)     .ThenBy(c =&gt; c.RowItemInfo.LayoutInfo.Line));<\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043f\u043e \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043b\u0438 \u043d\u0435\u0437\u043d\u0430\u043d\u0438\u044e. \u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0432\u0438\u043d\u043e\u0432\u0430\u0442 copy-paste.<\/p>\n<h2>\u0428\u0435\u0441\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u041a\u043e\u0434 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u00bb, \u2013 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e\u043d\u0438<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3009\/\">V3009<\/a> It&#8217;s odd that this method always returns one and the same value of &#8216;true&#8217;. MaskedTextProvider.cs 1529  <\/p>\n<pre><code class=\"cs\">public bool Remove(out int testPosition,   out MaskedTextResultHint resultHint) {   ....   if (lastAssignedPos == INVALID_INDEX)   {     ....     return true; \/\/ nothing to remove.   }   ....   return true; }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0656\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a .NET Core \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c PVS-Studio<\/a>&#171;. \u041c\u0435\u0442\u043e\u0434 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0435\u0440\u043d\u0451\u0442 <i>true<\/i>. \u0414\u0430, \u044d\u0442\u043e \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0435. \u041a \u043c\u0435\u0442\u043e\u0434\u0443 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439:<\/p>\n<p>  <i>Removes the last character from the formatted string. (Remove last character in virtual string). On exit the out param contains the position where the operation was actually performed. This position is relative to the test string. The MaskedTextResultHint out param gives more information about the operation result. Returns<\/i> <b><i>true <\/i><\/b> <i>on success,<\/i><b><i> false <\/i><\/b> <i>otherwise.<\/i><\/p>\n<p>  \u0424\u043e\u043a\u0443\u0441 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041d\u043e \u043a\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0447\u0438\u0442\u0430\u0435\u0442 \u044d\u0442\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438? \u0410 \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e, \u0442\u043e \u0442\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043b\u0435\u0433\u043a\u043e \u0432\u043a\u0440\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0435 \u0438\u043b\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435. \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u0435\u0442\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 <i>true<\/i>, \u043d\u0443 \u0438 \u043f\u043e\u0437\u0430\u0431\u044b\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451 \u043a\u0430\u043a \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e.<\/p>\n<h2>\u041f\u044f\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0418\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0439 \u043c\u0435\u043d\u044f, \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e!\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3102\/\">V3102<\/a> Suspicious access to element of &#8216;seq&#8217; object by a constant index inside a loop. XmlQueryRuntime.cs 738  <\/p>\n<pre><code class=\"cs\">public bool MatchesXmlType(IList&lt;XPathItem&gt; seq, ....) {   ....   for (int i = 0; i &lt; seq.Count; i++)   {     if (!CreateXmlType(seq[0]).IsSubtypeOf(....))       return false;   }    return true; }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0656\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a .NET Core \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c PVS-Studio<\/a>&#171;. \u041f\u0440\u0438 \u043e\u0431\u0445\u043e\u0434\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 <i>seq<\/i> \u0432 \u0446\u0438\u043a\u043b\u0435 <i>for <\/i>\u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0435\u0451 \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f\u0445 (\u0438\u043d\u0434\u0435\u043a\u0441 0 \u0432\u043c\u0435\u0441\u0442\u043e <i>i<\/i>).<\/p>\n<h2>\u0427\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0412\u0441\u0435\u0433\u043e-\u0442\u043e \u0434\u043e\u043b\u043b\u0430\u0440\u0430 \u0438 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3138\/\">V3138<\/a> String literal contains potential interpolated expression. Consider inspecting: e. SSPIHandleCache.cs 42  <\/p>\n<pre><code class=\"cs\">internal static void CacheCredential(SafeFreeCredentials newHandle) {   try   {     ....   }   catch (Exception e)   {     if (!ExceptionCheck.IsFatal(e))     {       NetEventSource.Fail(null, \"Attempted to throw: {e}\");     }   } }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0656\/\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a .NET Core \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c PVS-Studio<\/a>&#171;. \u0421\u0442\u0440\u043e\u043a\u0430 <i>\u00abAttempted to throw: {e}\u00bb<\/i>, \u043f\u043e \u0432\u0441\u0435\u0439 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438, \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439. \u0418\u0437-\u0437\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <i>$<\/i> \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f <i>e<\/i> \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb.<\/p>\n<h2>\u0422\u0440\u0435\u0442\u044c\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0412\u044b\u0445\u043e\u0434\u0430 \u043d\u0435\u0442\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3008\/\">V3008<\/a> [CWE-563] The &#8216;this.linker.s3.region&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 116, 114. AWSSDK.DynamoDBv2.Net45 S3Link.cs 116  <\/p>\n<pre><code class=\"cs\">public string Region  {    get    {     ....   }    set    {     if (String.IsNullOrEmpty(value))     {       this.linker.s3.region = \"us-east-1\";     }     this.linker.s3.region = value;    }  }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0605\/\">\u0418\u0449\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 Amazon Web Services SDK \u0434\u043b\u044f .NET<\/a>&#171;. \u0412 \u0442\u0435\u043b\u0435 \u0431\u043b\u043e\u043a\u0430 <i>if<\/i> \u0431\u044b\u043b \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d <i>return<\/i>. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>this.linker.s3.region<\/i> \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <i>value<\/i>, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 <i>null<\/i>.<\/p>\n<h2>\u0412\u0442\u043e\u0440\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u041f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0441\u044c!\u00bb<\/h2>\n<p>  <a href=\"https:\/\/www.viva64.com\/ru\/w\/v3070\/\">V3070<\/a> Uninitialized variable &#8216;LANG_USER_DEFAULT&#8217; is used when initializing the &#8216;LOCALE_USER_DEFAULT&#8217; variable. NativeMethods.cs 890  <\/p>\n<pre><code class=\"cs\">internal static class NativeMethods {   ....   public static readonly int LOCALE_USER_DEFAULT =     MAKELCID(LANG_USER_DEFAULT);   public static readonly int LANG_USER_DEFAULT =      MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT);   .... }<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0653\/\">WinForms: \u043e\u0448\u0438\u0431\u043a\u0438, \u0425\u043e\u043b\u043c\u0441<\/a>&#171;. \u041f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043d \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0435\u0439 \u043a\u043b\u0430\u0441\u0441\u0430. \u0414\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044f <i>LOCALE_USER_DEFAULT<\/i> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u043b\u0435 <i>LANG_USER_DEFAULT<\/i>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0435\u0449\u0451 \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0438 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>LANG_USER_DEFAULT<\/i> \u0434\u0430\u043b\u0435\u0435 \u0432 \u043a\u043e\u0434\u0435 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u0414\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u043a \u0447\u0435\u043c\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0442\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u0437 \u043a\u043e\u0434\u0430 WinForms. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b, \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u0445 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"cs\">internal static class NativeMethods {   public static readonly int LOCALE_USER_DEFAULT =      MAKELCID(LANG_USER_DEFAULT);   public static readonly int LANG_USER_DEFAULT =      MAKELANGID(0x00, 0x01);      public static int MAKELANGID(int primary, int sub)   {     return ((((ushort)(sub)) &lt;&lt; 10) | (ushort)(primary));   }   public static int MAKELCID(int lgid)   {     return MAKELCID(lgid, 0x0);   }   public static int MAKELCID(int lgid, int sort)   {     return ((0xFFFF &amp; lgid) | (((0x000f) &amp; sort) &lt;&lt; 16));   } } class Program {   static void Main()   {     System.Console.WriteLine(NativeMethods.LOCALE_USER_DEFAULT);   } }<\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e: 0. \u0422\u0435\u043f\u0435\u0440\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u043f\u043e\u043c\u0435\u043d\u044f\u0432 \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 <i>LOCALE_USER_DEFAULT<\/i> \u0438 <i>LANG_USER_DEFAULT<\/i>. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435: 1024.<\/p>\n<h2>\u041f\u0435\u0440\u0432\u043e\u0435 \u043c\u0435\u0441\u0442\u043e: \u00ab\u0414\u043e\u0432\u0435\u0440\u044f\u0439, \u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u00bb<\/h2>\n<p>  \u0421 \u043f\u0435\u0440\u0432\u044b\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e. \u0417\u0434\u0435\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u044d\u043a\u0441\u0442\u0440\u0430\u043e\u0440\u0434\u0438\u043d\u0430\u0440\u043d\u043e\u0435 \u0438 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043e\u0442\u043e\u0431\u0440\u0430\u043b \u0431\u043e\u043b\u0435\u0435 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u043d\u0435 \u0431\u044b\u043b\u043e. \u0418 \u0442\u0443\u0442 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043e \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u043e\u0435\u0433\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0421\u0435\u0440\u0433\u0435\u044f \u0412\u0430\u0441\u0438\u043b\u044c\u0435\u0432\u0430, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0439 \u043e\u0434\u043d\u043e\u0439 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0435. \u041f\u0440\u0435\u043b\u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u043b\u0438\u044f\u043b\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430. \u041a\u0430\u043a? \u042d\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0443\u0436\u0435 \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 &#171;<a href=\"https:\/\/www.viva64.com\/ru\/b\/0654\/\">\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a PVS-Studio \u043d\u0430\u0448\u0451\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u0432\u2026 PVS-Studio<\/a>&#171;. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u043b\u0435\u043d\u044c \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u043d\u044f\u043b. \ud83d\ude42 \u0410 \u044f \u0437\u0434\u0435\u0441\u044c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0441 \u0447\u0438\u0441\u0442\u043e\u0439 \u0441\u043e\u0432\u0435\u0441\u0442\u044c\u044e \u0437\u0430\u043b\u0435\u043d\u044e\u0441\u044c \u0438 \u043d\u0435 \u0441\u0442\u0430\u043d\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u0430 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0443 \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e \u0438 \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u0413\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e \u2013 \u044d\u0442\u043e \u0442\u043e\u0433\u043e \u0441\u0442\u043e\u0438\u0442. \u0414\u0430 \u0438 \u0441\u0442\u0430\u0442\u044c\u044f \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u044b\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438, \u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u0443\u0442\u043e\u043c\u0438\u043b\u0430. \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e, \u0447\u0442\u043e \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/www.viva64.com\/ru\/pvs-studio-download\/\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c<\/a> \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 PVS-Studio, \u0447\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u0438\u043c \u043f\u043e\u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0441\u0432\u043e\u0438\u0445 \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445, \u043f\u043e\u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f, \u0434\u0440\u0443\u0437\u0435\u0439 \u0438 \u043a\u043e\u043b\u043b\u0435\u0433. \u0418 \u043f\u0443\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044c\u0448\u0435, \u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0441\u0430\u043c\u043e\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u2014 \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435! \ud83d\ude42<\/p>\n<p>  \u0414\u043e\u0447\u0438\u0442\u0430\u043b\u0438? \u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e \u0441 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u043c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c! \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430 \u2014 \u043b\u0443\u0447\u0448\u0438\u0435 \u0431\u0430\u0433\u0438 2019 \u0433\u043e\u0434\u0430 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043d\u0430 <a href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481186\/\">Java<\/a> \u0438 <a href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481190\/\">C++<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b4c\/f27\/4c0\/b4cf274c045d32ce12b08487befdede7.png\" alt=\"Picture 2\"><\/div>\n<p><a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/481174\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c78\/30f\/70c\/c7830f70c5577c3d6704f254d7cad6a3.png\" align=\"left\"><\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0441 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439, \u0442\u043e \u043f\u0440\u043e\u0448\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434: Sergey Khrenov. <a href=\"https:\/\/habr.com\/en\/company\/pvs-studio\/blog\/481174\/\">Top 10 Bugs Found in C# Projects in 2019<\/a>.<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481178\/\"> https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481178\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/pvs-studio\/blog\/481178\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/970\/122\/d8c\/970122d8c4434832fba26edb674ff23d.png\" alt=\"Picture 1\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u043c \u0432\u0441\u0435\u0445 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0431\u0430\u0433\u043e\u0432. \u0423\u0436\u0435 \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442 \u041d\u043e\u0432\u044b\u0439 \u0433\u043e\u0434, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0432\u0435\u0441\u0442\u0438 \u0438\u0442\u043e\u0433\u0438 \u0433\u043e\u0434\u0430 \u0443\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e. \u041f\u043e \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u0438 \u2014 \u0440\u0435\u0439\u0442\u0438\u043d\u0433 \u0441\u0430\u043c\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 PVS-Studio \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 C# \u0437\u0430 2019 \u0433\u043e\u0434. \u0413\u043e\u0442\u043e\u0432\u044b? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-296079","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296079"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296079\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}