From e9ba91c75a34fd2d68ab968c8cddd6e9cf816a33 Mon Sep 17 00:00:00 2001 From: Yunusov_Niyaz Date: Wed, 22 May 2024 16:41:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B0=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarRepairShop/CarRepairShop/DataGridViewExtension.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CarRepairShop/CarRepairShop/DataGridViewExtension.cs b/CarRepairShop/CarRepairShop/DataGridViewExtension.cs index 3903314..850d5ea 100644 --- a/CarRepairShop/CarRepairShop/DataGridViewExtension.cs +++ b/CarRepairShop/CarRepairShop/DataGridViewExtension.cs @@ -22,8 +22,7 @@ namespace CarRepairShop { throw new InvalidOperationException($"В типе {type.Name} не найдено свойство с именем { column.Name }"); } - var attribute = - property.GetCustomAttributes(typeof(ColumnAttribute), true)?.SingleOrDefault(); + var attribute = property.GetCustomAttributes(typeof(ColumnAttribute), true)?.SingleOrDefault(); if (attribute == null) { throw new InvalidOperationException($"Не найден атрибут типа ColumnAttribute для свойства { property.Name }");