mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 06:42:03 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user