1From 85bf9cd32138539252ed01c355cf766612cf47c9 Mon Sep 17 00:00:00 2001 2From: Paul Cercueil <paul@crapouillou.net> 3Date: Thu, 2 Sep 2021 11:04:21 +0100 4Subject: [PATCH] C#: public fields with getters/setters cannot be marked 5 readonly 6 7MSVC would fail with the following error: 8error CS0106: The modifier 'readonly' is not valid for this item 9 10Reported-by: Raluca Chis <raluca.chis@analog.com> 11Signed-off-by: Paul Cercueil <paul@crapouillou.net> 12 13[Retrieved from: 14https://github.com/analogdevicesinc/libiio/commit/85bf9cd32138539252ed01c355cf766612cf47c9] 15Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 16--- 17 bindings/csharp/Device.cs | 2 +- 18 1 file changed, 1 insertion(+), 1 deletion(-) 19 20diff --git a/bindings/csharp/Device.cs b/bindings/csharp/Device.cs 21index 96214243f..6c8c8f4f3 100644 22--- a/bindings/csharp/Device.cs 23+++ b/bindings/csharp/Device.cs 24@@ -208,7 +208,7 @@ public override void write(string str) 25 public readonly string name; 26 27 /// <summary>The label of this device.</summary> 28- public readonly string label { get; private set; } 29+ public string label { get; private set; } 30 31 /// <summary>A <c>list</c> of all the attributes that this device has.</summary> 32 public readonly List<Attr> attrs; 33