Horje
can a dictionary type use get set c# Code Example
can a dictionary type use get set c#
public class YourClass
{
    private readonly IDictionary<string, string> _yourDictionary = new Dictionary<string, string>();

    public string this[string key]
    {
        // returns value if exists
        get { return _yourDictionary[key]; }

        // updates if exists, adds if doesn't exist
        set { _yourDictionary[key] = value; }
    }
}
can a dictionary type use get set c#
var test = new YourClass();
test["Item1"] = "Value1";




Csharp

Related
entity framework linq join 2 tables c# Code Example entity framework linq join 2 tables c# Code Example
loops in coding Code Example loops in coding Code Example
cs close opened form when reopened Code Example cs close opened form when reopened Code Example
go down a line in <summary> dotnet Code Example go down a line in <summary> dotnet Code Example
Prime number Upto n Code Example Prime number Upto n Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11