Horje
C# Custom setter with parameter Code Example
C# Custom setter with parameter
private string fullName;
public string this[string firstName]
{
    get { return fullName; }
    set { fullName = firstName + " " + value; }
}

// Sample usage...
foo["Jon"] = "Skeet";
string name = foo["Bar"]; // name is now "Jon Skeet"




Csharp

Related
cannot override inherited member because it is not marked virtual abstract or override Code Example cannot override inherited member because it is not marked virtual abstract or override Code Example
convert word files to plain text c# Code Example convert word files to plain text c# Code Example
c# get serial ports Code Example c# get serial ports Code Example
unity disable the display of the camera frustrum Code Example unity disable the display of the camera frustrum Code Example
how to edit a c# list Code Example how to edit a c# list Code Example

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