Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# interface property

interface InterfaceExample
{
    int Number { get; set; }
}

class Example : InterfaceExample
{
	int num = 0;
	public int Number { get { return num; } set { num = value; } }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #interface #property
ADD COMMENT
Topic
Name
6+9 =