From c5b2d42ef4aa8293436b71e2169ead629a42d03e Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 2 Oct 2023 11:38:46 +0000 Subject: [PATCH] Updated C# code with comments. Updated wikipage Workaround Eiffel .NET limitations. (Signed-off-by:javier). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2439 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../Workaround-Eiffel-.NET-limitations.wiki | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki b/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki index 8657664f..fd912042 100644 --- a/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki +++ b/documentation/23.09/solutions/dotnet/eiffel-net-language/eiffel-net-integration/Workaround-Eiffel-.NET-limitations.wiki @@ -1,4 +1,4 @@ -[[Property:modification_date|Mon, 02 Oct 2023 10:25:19 GMT]] +[[Property:modification_date|Mon, 02 Oct 2023 11:38:46 GMT]] [[Property:publication_date|Mon, 02 Oct 2023 10:22:20 GMT]] [[Property:uuid|AF5801CA-928B-4870-BCC4-53DCAB23AF96]] [[Property:weight|10]] @@ -20,23 +20,28 @@ namespace ListOfString; /// public class ListOfString { + // Private list of strings private List _list; + // Constructor that initialize the list public ListOfString() { _list = new List(); } + // Add an item to the list public void Add(string item) { _list.Add(item); } + // Check if the list contains a specific item public bool Contains(string item) { return _list.Contains(item); } + // Remove a specific item from the list public void Remove(string item) { _list.Remove(item);