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
This commit is contained in:
eiffel-org
2023-10-02 11:38:46 +00:00
parent afe59e0e62
commit c5b2d42ef4

View File

@@ -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;
/// </summary>
public class ListOfString
{
// Private list of strings
private List<string> _list;
// Constructor that initialize the list
public ListOfString()
{
_list = new List<string>();
}
// 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);